Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
SHA string
Branch string
IsDirty bool
WorkingTreeHash string
CommitMessage string
CommitAuthor string
CommitEmail string
CommitTimestamp string
RemoteURL string
}
Info contains git repository information
func GetInfo ¶
GetInfo retrieves version-control information for the given directory. Git is consulted first; a jj workspace without a colocated .git (the shape `jj workspace add` produces) is read through jj instead.
func (*Info) GetShortSHA ¶
GetShortSHA returns the first 8 characters of the SHA
Click to show internal directories.
Click to hide internal directories.