Implement fragment header parsing

Use a regexp for simplicity, unlike the direct parsing in Git.
This commit is contained in:
Billy Keyes
2019-03-13 23:04:01 -07:00
parent f41707bf2a
commit 4ddf1d962d
3 changed files with 126 additions and 6 deletions
+7 -1
View File
@@ -7,4 +7,10 @@ type File struct {
}
// Fragment describes changed lines starting at a specific line in a text file.
type Fragment struct{}
type Fragment struct {
OldPosition int64
OldLines int64
NewPosition int64
NewLines int64
}