mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
Accept comments when parsing fragment headers
Also parse the header directly instead of using a regexp. This allows finer-grained errors.
This commit is contained in:
@@ -27,6 +27,8 @@ type File struct {
|
||||
|
||||
// Fragment describes changed lines starting at a specific line in a text file.
|
||||
type Fragment struct {
|
||||
Comment string
|
||||
|
||||
OldPosition int64
|
||||
OldLines int64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user