Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { Hash string Author string Date time.Time Message strings.Builder Diffs []Diff Size int // in bytes }
Commit contains commit header info and diffs.
type Option ¶ added in v3.27.0
type Option func(*Parser)
Option is used for adding options to Config.
func WithMaxCommitSize ¶ added in v3.27.0
WithMaxCommitSize sets maxCommitSize option. Commits larger than maxCommitSize will be put in the commit channel and additional diffs will be added to a new commit.
func WithMaxDiffSize ¶ added in v3.27.0
WithMaxDiffSize sets maxDiffSize option. Diffs larger than maxDiffSize will be truncated.
type Parser ¶ added in v3.27.0
type Parser struct {
// contains filtered or unexported fields
}
Parser sets values used in GitParse.
func NewParser ¶ added in v3.27.0
NewParser creates a GitParse config from options and sets defaults.
func (*Parser) FromReader ¶ added in v3.31.3
Click to show internal directories.
Click to hide internal directories.