Documentation
¶
Overview ¶
Package gitlog ...
Index ¶
- func Exec(ctx context.Context, repoPath string, options ...Option) (*commitIterator, error)
- type Commit
- type CommitOrder
- type Event
- type Option
- func WithCommitOrder(order CommitOrder) Option
- func WithFileFilter(fileFilter string) Option
- func WithFirstParent(firstParent bool) Option
- func WithIncludeStats(includeStats bool) Option
- func WithM(m bool) Option
- func WithMaxCount(n int) Option
- func WithNoMerges(noMerges bool) Option
- func WithStats(stats bool) Option
- type Stat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Commit ¶
type Commit struct { SHA string Tree string Parents []string Author Event Committer Event Message string Stats []Stat // contains filtered or unexported fields }
Commit represents a commit parsed from git log
type CommitOrder ¶
type CommitOrder string
const ( DateOrder CommitOrder = "--date-order" AuthorDateOrder CommitOrder = "--author-data-order" TopoOrder CommitOrder = "--topo-order" Reverse CommitOrder = "--reverse" )
type Option ¶
type Option func(o *execOptions)
func WithCommitOrder ¶
func WithCommitOrder(order CommitOrder) Option
func WithFileFilter ¶
func WithFirstParent ¶
func WithIncludeStats ¶
func WithMaxCount ¶
func WithNoMerges ¶
Click to show internal directories.
Click to hide internal directories.