mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
Split up binary parsing to match text parsing
Parse the fragment header separately from the fragment chunk, which makes each function a bit more understandable.
This commit is contained in:
@@ -98,6 +98,7 @@ func (op LineOp) String() string {
|
||||
// BinaryFragment describes changes to a binary file.
|
||||
type BinaryFragment struct {
|
||||
Method BinaryPatchMethod
|
||||
Size int64
|
||||
Data []byte
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user