Documentation
¶
Overview ¶
Package gitbranch resolves the current branch of a git working directory by reading .git metadata directly, without shelling out to the git binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Watcher ¶ added in v1.132.0
type Watcher struct {
// contains filtered or unexported fields
}
Watcher reports changes to the current branch of a working directory.
func (*Watcher) Changes ¶ added in v1.132.0
Changes returns branch values when the observed branch changes.
Click to show internal directories.
Click to hide internal directories.