Versions in this module Expand all Collapse all v0 v0.10.0 Jun 6, 2018 Changes in this version + const AppConfigOrgName + const AppConfigRepoName + const AppConfigRepoUrl + const GitLogTimezone + var GitLogFormat = ... + func GetRepositoryPath() (string, error) + type CommitSorter []*GitCommit + func (a CommitSorter) Len() int + func (a CommitSorter) Less(i, j int) bool + func (a CommitSorter) Swap(i, j int) + type Directory struct + GitError error + LastCommit *GitCommit + Name string + type Git struct + RepositoryPath string + RepositoryURL string + UserInterface *ui.StreamedUi + func NewGit(url, path string) *Git + func (g *Git) Checkout(ref string) (string, error) + func (g *Git) Clean() (string, error) + func (g *Git) FreshCheckout(ref string) (string, error) + func (g *Git) GetRevision(ref string) (string, error) + func (g *Git) IsIndexDirty() (bool, error) + func (g *Git) LastCommit(path string) (*GitCommit, error) + func (g *Git) ListDirs() (dirs []*Directory, err error) + func (g *Git) Log(path string, count int) ([]*GitCommit, error) + func (g *Git) LogContainsSha(path string, sha string) (bool, error) + func (g *Git) Reset(args []string) (string, error) + func (g *Git) RevParse(args []string) (string, error) + func (g *Git) Status(args []string) (string, error) + func (g *Git) Update() (string, error) + func (g *Git) Version() (string, error) + type GitCommit struct + AbbreviatedSHA string + AuthorEmail string + AuthorName string + AuthorshipDate time.Time + CommitDate time.Time + CommitterEmail string + CommitterName string + Message string