Documentation ¶
Index ¶
- func Add(fail func(string, ...int), repoDir string)
- func Branch(fail func(string, ...int), repoDir string, branch string)
- func Checkout(fail func(string, ...int), repoDir string, branch string)
- func Commit(fail func(string, ...int), repoDir string, message string) string
- func DetachHead(fail func(string, ...int), repoDir string)
- func GitCmd(fail func(string, ...int), repoDir string, args ...string) string
- func HeadSha(fail func(string, ...int), repoDir string) string
- func Merge(fail func(string, ...int), repoDir string, commits ...string)
- func ReadRef(fail func(string, ...int), repoDir string, name string) string
- func Revlist(fail func(string, ...int), repoDir string, maxCount int, commit string) string
- func Tag(fail func(string, ...int), repoDir string, tag string, message string) string
- func WriteFile(fail func(string, ...int), repoDir string, name string, contents string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetachHead ¶
DetachHead puts the repository in a detached head mode.
func HeadSha ¶
HeadSha returns the commit SHA of the current HEAD commit within the specified git directory
func ReadRef ¶
ReadRef reads the commit SHA of the specified ref. Needs to be of the form /refs/heads/<name>.
func Revlist ¶
Revlist lists commits that are reachable by following the parent links from the given commit
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.