Files
bluekeyes-go-gitdiff/gitdiff/gitdiff.go
T
Billy Keyes 4ddf1d962d Implement fragment header parsing
Use a regexp for simplicity, unlike the direct parsing in Git.
2019-03-13 23:04:01 -07:00

17 lines
338 B
Go

package gitdiff
// File describes changes to a single file. It can be either a text file or a
// binary file.
type File struct {
Fragments []*Fragment
}
// Fragment describes changed lines starting at a specific line in a text file.
type Fragment struct {
OldPosition int64
OldLines int64
NewPosition int64
NewLines int64
}