Documentation
¶
Index ¶
- Constants
- Variables
- func GetRepositoryPath() (string, error)
- type CommitSorter
- type Directory
- type 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
Constants ¶
View Source
const AppConfigOrgName = "TimeIncOSS"
View Source
const AppConfigRepoName = "ape-dev-rt-apps"
View Source
const AppConfigRepoUrl = "git@github.com:" + AppConfigOrgName + "/" + AppConfigRepoName + ".git"
View Source
const GitLogTimezone = "Local"
Variables ¶
View Source
var GitLogFormat = "format:" + strings.Join([]string{
"%h",
"%s",
"%an",
"%ae",
"%ad",
"%cn",
"%ce",
"%cd",
}, "%n") + "%n%n"
Functions ¶
func GetRepositoryPath ¶
Types ¶
type CommitSorter ¶
type CommitSorter []*GitCommit
func (CommitSorter) Len ¶
func (a CommitSorter) Len() int
func (CommitSorter) Less ¶
func (a CommitSorter) Less(i, j int) bool
func (CommitSorter) Swap ¶
func (a CommitSorter) Swap(i, j int)
type Git ¶
type Git struct { RepositoryURL string RepositoryPath string UserInterface *ui.StreamedUi }
func (*Git) IsIndexDirty ¶
Click to show internal directories.
Click to hide internal directories.