From 9f4111015e36872698f4a2ea427ce98558961eeb Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 26 Oct 2014 12:07:54 +0100 Subject: [PATCH] Blame --- check-contrib.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/check-contrib.sh b/check-contrib.sh index f33e7b7a7..853f15c54 100755 --- a/check-contrib.sh +++ b/check-contrib.sh @@ -26,6 +26,19 @@ print-missing-copyright() { find . -name \*.go | xargs grep -L 'Copyright (C)' | grep -v Godeps } +print-line-blame() { + for f in $(find . -name \*.go | grep -v Godep) gui/app.js gui/index.html ; do + git blame --line-porcelain $f | grep author-mail + done | sort | uniq -c | sort -n +} +echo Author emails missing in CONTRIBUTORS: print-missing-contribs -print-missing-copyright +echo + +echo Files missing copyright notice: +print-missing-copyright +echo + +echo Blame lines per author: +print-line-blame