Versions in this module Expand all Collapse all v1 v1.0.3 Jun 16, 2021 v1.0.2 Apr 23, 2021 v1.0.1 Mar 24, 2021 Changes in this version + func RemoveNote(nameSpace, commitHash string, wd ...string) error + func RewriteNote(oldHash, newHash, nameSpace string, wd ...string) error v1.0.0 Jan 18, 2021 Changes in this version + func CurrentBranch(wd ...string) string v0 v0.1.0 Oct 31, 2020 Changes in this version + var ErrHeadUnborn = errors.New("Head commit not found") + func CommitIDs(limiter CommitLimiter, wd ...string) ([]string, error) + func ConfigRemove(settings map[string]string, wd ...string) error + func ConfigSet(settings map[string]string, wd ...string) error + func CreateNote(noteTxt string, nameSpace string, wd ...string) error + func FetchRemotesAddRefSpecs(refSpecs []string, wd ...string) error + func FetchRemotesRemoveRefSpecs(refSpecs []string, wd ...string) error + func GitRepoPath(path ...string) (string, error) + func IgnoreRemove(ignore string, wd ...string) error + func IgnoreSet(ignore string, wd ...string) error + func RemoveHooks(hooks map[string]GitHook, p string) error + func SetHooks(hooks map[string]GitHook, wd ...string) error + func Workdir(gitRepoPath string) (string, error) + type Commit struct + Author string + Email string + Files []string + ID string + Message string + OID *git.Oid + Stats CommitStats + Summary string + When time.Time + func HeadCommit(wd ...string) (Commit, error) + type CommitLimiter struct + After time.Time + Author string + Before time.Time + DateRange util.DateRange + HasAfter bool + HasAuthor bool + HasBefore bool + HasMax bool + HasMessage bool + HasSubdir bool + Max int + Message string + Subdir string + func NewCommitLimiter(max int, fromDateStr, toDateStr, author, message string, ...) (CommitLimiter, error) + type CommitNote struct + Author string + Email string + ID string + Message string + Note string + OID *git.Oid + Stats CommitStats + Summary string + When time.Time + func ReadNote(commitID string, nameSpace string, calcStats bool, wd ...string) (CommitNote, error) + type CommitStats struct + Deletions int + Files []string + FilesChanged int + Insertions int + func DiffParentCommit(childCommit *git.Commit) (CommitStats, error) + func (c CommitStats) ChangeRatePerHour(seconds int) float64 + type GitHook struct + Command string + Exe string + RE *regexp.Regexp + type Status struct + Files []fileStatus + func NewStatus(wd ...string) (Status, error) + func (s *Status) AddFile(e git.StatusEntry) + func (s *Status) HasStaged() bool + func (s *Status) IsModified(path string, staging bool) bool + func (s *Status) IsTracked(path string) bool