[releng] make sure author+committer counts are accurate
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng] make sure author+committer counts are accurate
- Date: Sat, 24 Sep 2011 13:37:16 +0000 (UTC)
commit 077f6b9a90d550063045f0ba60c4993ee6b31602
Author: Olav Vitters <olav vitters nl>
Date: Sat Sep 24 15:37:03 2011 +0200
make sure author+committer counts are accurate
tools/contributions/get-git-stats | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tools/contributions/get-git-stats b/tools/contributions/get-git-stats
index d6b8099..3957e1a 100755
--- a/tools/contributions/get-git-stats
+++ b/tools/contributions/get-git-stats
@@ -1,5 +1,5 @@
#!/bin/sh
-# vim: set ts=4:
+# vim: set ts=4 sw=4:
SINCE="2011-04-06"
@@ -37,13 +37,17 @@ for d in ~/src/*; do
# note: This is case-specific
git log --after=$SINCE --committer='' --pretty=format:"%ce" > "$statdir"/committers
+ if [ "$(tail -c 1 "$statdir"/committers | od -t d1 -A n)" != " 10" ]; then echo >> "$statdir"/committers; fi
committers=$(sort -u "$statdir"/committers | wc -l)
cat "$statdir"/committers >> "$statdir"/all-committers
+
+
# Check how many different authors for that module exist:
# note: This is case-specific
git log --after=$SINCE --author='' --pretty=format:"%ae" > "$statdir"/authors
+ if [ "$(tail -c 1 "$statdir"/authors | od -t d1 -A n)" != " 10" ]; then echo >> "$statdir"/authors; fi
authors=$(sort -u "$statdir"/authors | wc -l)
# Get 10 most active authors for all the commits, sorted by number of commits:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]