summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-03-21 17:15:32 -0700
committerMathias Preiner <mathias.preiner@gmail.com>2018-03-21 17:15:32 -0700
commitd3528b6db31f9bdff56bc519bbf427b2533c43b8 (patch)
tree3430e8929ec931986bad2391e6549b827d35c955 /contrib
parent6a0b4c3c4c77aa1bdd1a44c41d4c3ad9c88d9307 (diff)
Ignore whitespaces and moved code for contrib/get-authors.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/get-authors2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/get-authors b/contrib/get-authors
index c0f49fac9..a888d38f3 100755
--- a/contrib/get-authors
+++ b/contrib/get-authors
@@ -31,7 +31,7 @@ while [ $# -gt 0 ]; do
fi
((header_lines++))
total_lines=`wc -l "$f" | awk '{print$1}'`
- git blame --incremental -L $header_lines,$total_lines "$f" | \
+ git blame -w -M -C --incremental -L $header_lines,$total_lines "$f" | \
gawk '/^[0-9a-f]+ [0-9]+ [0-9]+ [0-9]+$/ {nl=$4;} /^summary .*copyright/ {nl=0} /^author / {$1=""; author=$0;} /^author-mail / {mail=$2} /^filename / {while(nl--) {print author,mail}}' | \
sed "s,Not Committed Yet <not.committed.yet>,$gituser," | \
sed 's/PaulMeng/Paul Meng/' | \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback