author | Jim Meyering <jim@meyering.net> | |
Wed, 28 Mar 2012 08:45:36 +0000 (10:45 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 28 Mar 2012 18:18:35 +0000 (11:18 -0700) | ||
commit | 65c2b2b509796965b9a584e4d92fec2afc4470cd | |
tree | 2e1a318380f34fa9b98d7ed1d61345abaa393bc5 | tree | snapshot |
parent | a7793a749115ead3b8f7447ce1e96572ea5d8ea3 | commit | diff |
correct a few doubled-word nits in comments and documentation
Found by running this command:
$ git ls-files -z|xargs -0 perl -0777 -n \
-e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \
-e ' {' \
-e ' $n = ($` =~ tr/\n/\n/ + 1);' \
-e ' ($v = $&) =~ s/\n/\\n/g;' \
-e ' print "$ARGV:$n:$v\n";' \
-e ' }'
Why not just git grep -E ...?
That wouldn't work then the doubled words are separated by a newline.
This is derived from a Makefile syntax-check rule in gnulib's maint.mk:
http://git.sv.gnu.org/cgit/gnulib.git/tree/top/maint.mk
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Found by running this command:
$ git ls-files -z|xargs -0 perl -0777 -n \
-e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \
-e ' {' \
-e ' $n = ($` =~ tr/\n/\n/ + 1);' \
-e ' ($v = $&) =~ s/\n/\\n/g;' \
-e ' print "$ARGV:$n:$v\n";' \
-e ' }'
Why not just git grep -E ...?
That wouldn't work then the doubled words are separated by a newline.
This is derived from a Makefile syntax-check rule in gnulib's maint.mk:
http://git.sv.gnu.org/cgit/gnulib.git/tree/top/maint.mk
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-sh-i18n--envsubst.txt | diff | blob | history | |
attr.h | diff | blob | history | |
gitweb/static/js/lib/cookies.js | diff | blob | history | |
po/README | diff | blob | history |