Skip to content

Commit e7aea20

Browse files
feat: remove files changed stats
1 parent ada22ce commit e7aea20

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ fn print_commit_stats(commits: Vec<String>, should_sort: &bool) {
6161
commit_stats.sort_by(|a, b| b.2.cmp(&a.2)); // 按插入行数降序排序
6262
}
6363

64-
let mut total_files = 0;
6564
let mut total_added = 0;
6665
let mut total_deleted = 0;
6766

@@ -72,14 +71,13 @@ fn print_commit_stats(commits: Vec<String>, should_sort: &bool) {
7271
commit, added, deleted, files_changed,
7372
);
7473

75-
total_files += files_changed;
7674
total_added += added;
7775
total_deleted += deleted;
7876
}
7977

8078
println!(
81-
"Total: {} insertions(+), {} deletions(-) , {} files changed",
82-
total_added, total_deleted, total_files
79+
"Total: {} insertions(+), {} deletions(-)",
80+
total_added, total_deleted
8381
);
8482
}
8583

0 commit comments

Comments
 (0)