Skip to content

Commit

Permalink
Fix log 0 for empty commits
Browse files Browse the repository at this point in the history
  • Loading branch information
w4 committed Nov 18, 2024
1 parent c474c3a commit acb6b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ fn fetch_diff_and_stats(
(
max_file_name_length.max(stats.path.len()),
max_change_length
.max(((stats.insertions + stats.deletions).ilog10() + 1) as usize),
.max(((stats.insertions + stats.deletions + 1).ilog10() + 1) as usize),
files_changed + 1,
insertions + stats.insertions,
deletions + stats.deletions,
Expand Down

0 comments on commit acb6b76

Please sign in to comment.