Documentation ¶
Overview ¶
Package project models a git repository of Go source code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct { Files []PathDiff `json:"files"` Packages []PathDiff `json:"packages"` // contains filtered or unexported fields }
A Diff identifies the files and packages modified since the base commit. Recursive diffs also include packages that depend on modified code.
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
A Project represents a git repository of Go source code.
func (*Project) Diff ¶
Diff identifies the files and packages directly modified since the supplied commitish.
func (*Project) Exec ¶
Exec executes a command, sending the output directly to standard out and standard error.
func (*Project) RecursiveDiff ¶
RecursiveDiff identifies the files and packages directly modified since the supplied commitish, along with any packages that depend on modified code.
type Status ¶
type Status uint8
Status describes the state of a file or package relative to a previous commit.
Relative to a previous commit, each file or package is either unchanged, modified, or deleted.
func (Status) MarshalText ¶
MarshalText implements encoding.TextMarshaler.