Documentation
¶
Index ¶
- func Branches(repo *git.Repository) ([]*plumbing.Reference, error)
- func FindMainBranch(repo *git.Repository, branches []string) (string, error)
- func GitwebCategory(repo *git.Repository) string
- func GitwebDescription(repo *git.Repository) string
- func WriteTar(w io.Writer, prefix string, tree *object.Tree) error
- type CommitsOptions
- type CommitsPageMeta
- type NiceDiff
- type NiceTree
- type TagList
- type TagReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMainBranch ¶ added in v1.2.1
func FindMainBranch(repo *git.Repository, branches []string) (string, error)
func GitwebCategory ¶ added in v1.2.1
func GitwebCategory(repo *git.Repository) string
GitwebCategory returns category text. See https://git-scm.com/docs/gitweb#Documentation/gitweb.txt-categoryorgitwebcategory
func GitwebDescription ¶ added in v1.2.1
func GitwebDescription(repo *git.Repository) string
GitwebDescription returns description text. See https://git-scm.com/docs/gitweb#Documentation/gitweb.txt-descriptionorgitwebdescription
Types ¶
type CommitsOptions ¶
type CommitsPageMeta ¶
func Commits ¶ added in v1.2.1
func Commits(repo *git.Repository, rev plumbing.Hash, opts CommitsOptions) ([]*object.Commit, CommitsPageMeta, error)
type NiceDiff ¶
type NiceDiff struct {
Commit *object.Commit
Parent *object.Commit
Stat struct {
FilesChanged int
Insertions int
Deletions int
}
Files []*gitdiff.File
}
A nicer git diff representation.
type TagList ¶
type TagList struct {
// contains filtered or unexported fields
}
type TagReference ¶
type TagReference struct {
// contains filtered or unexported fields
}
TagReference is used to list both tag and non-annotated tags. Non-annotated tags should only contains a reference. Annotated tags should contain its reference and its tag information.
func Tags ¶ added in v1.2.1
func Tags(repo *git.Repository) ([]*TagReference, error)
func (*TagReference) Message ¶
func (t *TagReference) Message() string
func (*TagReference) Name ¶
func (t *TagReference) Name() string
Click to show internal directories.
Click to hide internal directories.