]> Lady’s Gitweb - Gitweb/commit
remove doubled words, e.g., s/to to/to/, and fix related typos
authorJim Meyering <redacted>
Wed, 13 Apr 2011 15:39:40 +0000 (17:39 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commit0738bcc36a05cf46cff8d75ea3803f74436570679c4b6d89875354390e2a39a3
tree9ab1ae78c917d1d239903e10c900b05fe9e46594531dc2c9dec9a185c0f7ee8b
parent26f744892e1d59f0ade9ae2712790e199e0f351db9fe943c333ec9c279c09c40
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
README
This page took 0.225616 seconds and 4 git commands to generate.