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)
commit711c1387b62afb935bc7c996e243c7406ecb0a6d
treefd003306bc3525dc55c04287e1df039d6ec31eae
parent3d3ca534beb71e0b2ca3505f9b347229d91a4e02
remove doubled words, e.g., s/to to/to/, and fix related typos

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