Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = 60 * time.Second
Variables ¶
This section is empty.
Functions ¶
func HunkHeader ¶
Types ¶
type FilePatch ¶
type FilePatch struct {
Path string
OldPath string
Binary bool
OldMode string
NewMode string
Deleted bool
Created bool
Hunks []*diff.Hunk
Text string
Added int
Removed int
Extended []string
}
func ParsePatch ¶
ParsePatch parses `git diff` output with go-diff and adds the details that go-diff leaves in the extended headers (binary files, modes, renames).
Click to show internal directories.
Click to hide internal directories.