git

package
v0.0.0-...-05ac8c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git interface {
	Init()
	Add(filename string)
	Commit(msg, date string)
}

Git is a simple interface the git command line tool.

type Repo

type Repo struct {
	Location string
}

Repo represents a git repository by a given location.

func (Repo) Add

func (git Repo) Add(filename string)

Add wraps the git add call and will change into the location of the git repo add the file given by name and change back to the previous directory.

func (Repo) Commit

func (git Repo) Commit(message, date string)

Commit will change into the location of the git repo and execute git commit with a message and date and change back to the previous directory.

func (Repo) Init

func (git Repo) Init()

Init initializes a git repo in its location. If the location does not already exists, it will be created.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL