Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Description ¶
type Description struct {
Tag string
AdditionalCommits int // number of additional commits after the last tag
ShortHash string
}
Description contains the result of `git describe --long` command. It could be empty if there is no tag in the repository.
type Status ¶
type Status struct {
Branch string // result of `git branch --show-current`
Description Description // result of `git describe --long` command
Hash string // result of `git rev-parse HEAD` command
ShortHash string // result of `git rev-parse --short HEAD` command
AuthorDate string // result of `git log -n1 --date=format:"%Y-%m-%dT%H:%M:%S" --format=%ad`
Dirty bool // repo returns non-empty `git status --porcelain`
}
Status contains the status of the git repository in the current directory.
Click to show internal directories.
Click to hide internal directories.