Documentation ¶ Index ¶ type Info func GetInfo() (*Info, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Info ¶ type Info struct { IsRepo bool // Whether the current directory is in a git repository CurrentCommit string // The current commit hash CurrentBranch string // The current branch name } Info holds git repository information func GetInfo ¶ func GetInfo() (*Info, error) GetInfo returns information about the current git repository Source Files ¶ View all Source files git.go Click to show internal directories. Click to hide internal directories.