package
Version:
v0.0.0-...-05ac8c3
Opens a new window with list of versions in this module.
Published: Apr 13, 2017
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
type Git interface {
Init()
Add(filename string)
Commit(msg, date string)
}
Git is a simple interface the git command line tool.
type Repo struct {
Location string
}
Repo represents a git repository by a given location.
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.
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.
Init initializes a git repo in its location.
If the location does not already exists, it will be created.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.