mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
Implement fragment header parsing
Use a regexp for simplicity, unlike the direct parsing in Git.
This commit is contained in:
+7
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user