Documentation ¶
Overview ¶
Package commits defines the representations of git commit objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
Commit holds data for a single git commit.
type Commits ¶
type Commits func() []*Commit
Commits returns commits. @todo #4 Figure out how to disable the golint check that
forces us to write redundant comments of the form 'comment on exported type Commits should be of the form "Commits ..." (with optional leading article)' and rewrite all comments.
func In ¶
In returns the commits in the repo. @todo #4 These err checks are extremely annoying. Figure out
how to handle them elegantly and reduce the cyclo complexity of this function (currently at 4).
func MsgIn ¶
MsgIn returns a single fake commit with the message read from this reader. This fake commit will have a fake hash and its timestamp will be time.Now().
func NotAuthoredByEmails ¶
NotAuthoredByEmails filters out commits with authors whose emails match any of the given patterns.
func NotAuthoredByNames ¶
NotAuthoredByNames filters out commits with authors whose names match any of the given patterns.
func WithMaxParents ¶
WithMaxParents returns commits that have at most n number of parents. Useful for excluding merge commits.