summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 01aaf1f)
raw | patch | inline | side by side (parent: 01aaf1f)
author | Luben Tuikov <ltuikov@yahoo.com> | |
Sun, 13 Aug 2006 07:34:37 +0000 (00:34 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 13 Aug 2006 08:46:28 +0000 (01:46 -0700) |
Between the count and the line output, some
uniq(1) versions put a TAB character, not a space.
Make sure both are handled.
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
uniq(1) versions put a TAB character, not a space.
Make sure both are handled.
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--commit-msg | patch | blob | history |
index 643822d2351c4547895237992400bd92f492085b..23617f390611f5221149ec1b9bbc5d72092fd04d 100644 (file)
# This example catches duplicate Signed-off-by lines.
test "" = "$(grep '^Signed-off-by: ' "$1" |
- sort | uniq -c | sed -e '/^[ ]*1 /d')"
+ sort | uniq -c | sed -e '/^[ ]*1[ ]/d')"