gitlog

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 9 Imported by: 0

README

gitlog

Package for parsing the output of git log for the purposes of gitpert.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	SHA       string
	Author    Event
	Committer Event
	Stats     map[string]Stat
}

Commit represents a parsed commit from git log

type Event

type Event struct {
	Name  string
	Email string
	When  time.Time
}

Event represents the who and when of a commit event

type Result

type Result []*Commit

Result is a list of commits

func Exec

func Exec(ctx context.Context, repoPath string, filePattern string, additionalFlags []string) (Result, error)

Exec runs the git log command

type Stat

type Stat struct {
	Additions int
	Deletions int
}

Stat holds the diff stat of a file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL