From 595ea76b82902b21dbfc488f5e5605b1cbbd3811 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Tue, 28 Jan 2014 20:27:15 -0500 Subject: [PATCH] Don't count merge commits in project stats For accuracy, and congruence with how GitHub counts. --- developer/bin/project_stats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer/bin/project_stats b/developer/bin/project_stats index a61915bfab..b1774ef0ee 100755 --- a/developer/bin/project_stats +++ b/developer/bin/project_stats @@ -65,7 +65,7 @@ _homebrew_cask_project_stats () { fi printf "\n" - local git_log_cmd="git log --format='%ae' ${start_object}..${end_object}" + local git_log_cmd="git log --no-merges --format='%ae' ${start_object}..${end_object}" local cask_authors="$($git_log_cmd -- $cask_paths | sort | uniq | wc -l)" printf " Casks\t$cask_authors\n" @@ -77,7 +77,7 @@ _homebrew_cask_project_stats () { $git_log_cmd -- . | sort | uniq | wc -l if [[ "$start_object" != "$initial_commit" ]]; then printf "\nAll-time contributors\t" - git log --format='%ae' ${initial_commit}..${end_object} -- . | sort | uniq | wc -l + git log --no-merges --format='%ae' ${initial_commit}..${end_object} -- . | sort | uniq | wc -l fi printf "\n"