Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HashRE *regexp.Regexp = regexp.MustCompile(`[[:xdigit:]]{40}`)
)
Functions ¶
Types ¶
type CommandFn ¶
type CommandFn func(stdin io.Reader, stdout, stderr io.Writer, cwd string, cmd string, args ...string) CmdIntf
Functions that need to have their use of exec.Command tested should take a function-type argument that satisfies this type declaration. It's a "convenience" function that sets up all of the Cmd object's fields after instantiating it (fields are harder to mock). Just call this with all of the expected arguments, and it'll give you back something with a Run() function on it. When your caller passes nil for this function argument, use the defaultCommandImpl.
type CommitList ¶
type CommitList []Commit
func (*CommitList) ToJSON ¶
func (c *CommitList) ToJSON() ([]byte, error)
type LocalGitRepo ¶
type LocalGitRepo struct {
Path string
}
Use OpenLocalGitRepo to create a LocalGitRepo based on a file system directory.
func OpenLocalGitRepo ¶
func OpenLocalGitRepo(p string, cmdFn CommandFn) (*LocalGitRepo, error)
type Timelapse ¶
type Timelapse []TimelapseHunk
type TimelapseHunk ¶
type TimelapseHunk struct {
Disposition
Lines []string
}
func (TimelapseHunk) String ¶
func (h TimelapseHunk) String() string
Click to show internal directories.
Click to hide internal directories.