mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
committed by
Lunny Xiao
parent
b209531959
commit
33ad554800
4
vendor/gopkg.in/src-d/go-git.v4/plumbing/object/patch.go
generated
vendored
4
vendor/gopkg.in/src-d/go-git.v4/plumbing/object/patch.go
generated
vendored
@@ -321,6 +321,10 @@ func getFileStatsFromFilePatches(filePatches []fdiff.FilePatch) FileStats {
|
||||
|
||||
for _, chunk := range fp.Chunks() {
|
||||
s := chunk.Content()
|
||||
if len(s) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
switch chunk.Type() {
|
||||
case fdiff.Add:
|
||||
cs.Addition += strings.Count(s, "\n")
|
||||
|
Reference in New Issue
Block a user