Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotInitializedErr = fmt.Errorf("git repository has not been initialized")
NotInitializedErr is raised if the repository has not been initialized.
View Source
var RepoIsDirtyErr = fmt.Errorf("repository has unstaged changes")
RepoIsDirtyErr is raised if the repository has unstaged changes.
Functions ¶
func CurrentBranch ¶
CurrentBranch returns the current branch for this Git repo.
func ProjectName ¶
ProjectName extracts the project name from the remote info.
func RepoIsClean ¶
func RepoIsClean() bool
RepoIsClean returns false if there are changes in the repo.
func RootDir ¶
func RootDir() string
RootDir is the root directory of the Git project. Reference: https://stackoverflow.com/a/957978
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.