Skip to content

Commit

Permalink
extract total_number_of_commits from author map
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Jun 16, 2023
1 parent 3e19824 commit 086ed9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/info/git/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ impl GitMetrics {
number_of_commits_by_signature: HashMap<Sig, usize>,
number_of_commits_by_file_path: HashMap<BString, usize>,
churn_pool_size: usize,
total_number_of_commits: usize,
time_of_first_commit: Option<Time>,
time_of_most_recent_commit: Option<Time>,
options: &CliOptions,
) -> Result<Self> {
let total_number_of_commits = number_of_commits_by_signature.values().sum();
let (authors_to_display, total_number_of_authors) = compute_authors(
number_of_commits_by_signature,
total_number_of_commits,
Expand Down
1 change: 0 additions & 1 deletion src/info/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ pub fn traverse_commit_graph(repo: &gix::Repository, options: &CliOptions) -> Re
number_of_commits_by_signature,
number_of_commits_by_file_path,
churn_pool_size,
count,
time_of_first_commit,
time_of_most_recent_commit,
options,
Expand Down

0 comments on commit 086ed9e

Please sign in to comment.