Documentation ¶
Index ¶
- type Diff
- type GitRepo
- func (g *GitRepo) Branches() ([]*plumbing.Reference, error)
- func (g *GitRepo) Commits() ([]*object.Commit, error)
- func (g *GitRepo) Diff() (*NiceDiff, error)
- func (g *GitRepo) FileContent(path string) (string, error)
- func (g *GitRepo) FileTree(path string) ([]NiceTree, error)
- func (g *GitRepo) FindMainBranch(branches []string) (string, error)
- func (g *GitRepo) LastCommit() (*object.Commit, error)
- func (g *GitRepo) Tags() ([]*object.Tag, error)
- func (g *GitRepo) WriteTar(w io.Writer, prefix string) error
- type NiceDiff
- type NiceTree
- type TagList
- type TextFragment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type GitRepo ¶
type GitRepo struct {
// contains filtered or unexported fields
}
func (*GitRepo) FindMainBranch ¶
type NiceDiff ¶
type NiceDiff struct { Commit struct { Message string Author object.Signature This string Parent string } Stat struct { FilesChanged int Insertions int Deletions int } Diff []Diff }
A nicer git diff representation.
type NiceTree ¶
A nicer git tree representation.
Click to show internal directories.
Click to hide internal directories.