From acb6b7667ef5b20e2876690005525fc127b703af Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Mon, 18 Nov 2024 17:21:28 +0000 Subject: [PATCH] Fix log 0 for empty commits --- src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index 5046e56..7751a81 100644 --- a/src/git.rs +++ a/src/git.rs @@ -859,7 +859,7 @@ ( 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, -- rgit 0.1.3