Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTag ¶
GetCurrentTag returns the tag of the HEAD commit of the git repository in the specified directory It returns an error if git isn't installed, or if there is some sort of I/O problem It does not return an error if git exits with a non-zero exit code, it assumes this means there are no tags
func GetCurrentTreeHash ¶
GetCurrentTreeHash returns a hash of the git repository, consisting of the currently commited files, as well as any unstaged changes in the provided directories
func GetGitRoot ¶
GetGitRoot returns the directory which contains the .git folder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.