🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2024-11-18 17:21:28.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2024-11-18 17:21:54.0 +00:00:00
commit
acb6b7667ef5b20e2876690005525fc127b703af [patch]
tree
042b84cdda421cacd584a1a0a0b5b102589b02c4
parent
c474c3aeb4d2400d4cc53c363dfd8b8029d077d6
download
acb6b7667ef5b20e2876690005525fc127b703af.tar.gz

Fix log 0 for empty commits



Diff

 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,