Clarify behavior when parsing "index" lines

The parsed OIDs are usually prefixes, not full hashes, so rename the
fields appropriately. Also note that values that are too long to be
valid OIDs are still accepted by the library.
This commit is contained in:
Billy Keyes
2019-03-19 22:35:52 -07:00
parent b8b0c25c1e
commit aa3e0d357e
4 changed files with 19 additions and 15 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ type File struct {
OldMode os.FileMode
NewMode os.FileMode
OldOID string
NewOID string
Score int
OldOIDPrefix string
NewOIDPrefix string
Score int
Fragments []*Fragment
}