Git · ChangesList: line counts are optional, so binary files and folders show none

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 22:55:43 -04:00
1 parent 490b0220f6
commit 4f8f3bd4c4
3 files changed
+11 -10

No files matched your search

+1 -2
View File
@@ -19,8 +19,7 @@ fn changed(path: &str, status: GitStatus, added: usize, removed: usize) -> Chang
Changed {
path: path.to_string().into(),
status,
added,
removed,
lines: Some((added, removed)),
}
}