fix<Diff>: getting wrong size for LFS objects when the size of file didn't changed

This commit is contained in:
leo 2020-11-04 23:35:12 +08:00
parent 19bccbecf6
commit c14198a830

View file

@ -295,6 +295,8 @@ namespace SourceGit.Git {
} else if (line.StartsWith("size ")) {
rc.New.Size = int.Parse(line.Substring(5));
}
} else if (line.StartsWith(" size ")) {
rc.New.Size = rc.Old.Size = int.Parse(line.Substring(6));
}
});