remove doubled words, e.g., s/to to/to/, and fix related typos
authorJim Meyering <jim@meyering.net>
Wed, 13 Apr 2011 15:39:40 +0000 (17:39 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 24 Nov 2012 19:06:41 +0000 (14:06 -0500)
I found that some doubled words had snuck back into projects from which
I'd already removed them, so now there's a "syntax-check" makefile rule in
gnulib to help prevent recurrence.

Running the command below spotted a few in git, too:

  git ls-files | xargs perl -0777 -n \
    -e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt])\s+\1\b/gims)' \
    -e '{$n=($` =~ tr/\n/\n/ + 1); ($v=$&)=~s/\n/\\n/g;' \
    -e 'print "$ARGV:$n:$v\n"}'

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
[wking@tremily.us: only apply SubmittingPatches portion of the
original patch since I'm pulling out only the D-C-O portion of
SubmittingPatches]
Signed-off-by: W. Trevor King <wking@tremily.us>
Documentation/SubmittingPatches

index e88d00c110d5d1ac61dd89fe6ffa51b298dc7a81..b04ec70d58b34a8cc4be223822ac747bb2b0cb6e 100644 (file)
@@ -55,7 +55,7 @@ don't hide your real name.
 
 If you like, you can put extra tags at the end:
 
 
 If you like, you can put extra tags at the end:
 
-1. "Reported-by:" is used to to credit someone who found the bug that
+1. "Reported-by:" is used to credit someone who found the bug that
    the patch attempts to fix.
 2. "Acked-by:" says that the person who is more familiar with the area
    the patch attempts to modify liked the patch.
    the patch attempts to fix.
 2. "Acked-by:" says that the person who is more familiar with the area
    the patch attempts to modify liked the patch.