]> Lady’s Gitweb - Gitweb/commitdiff
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)
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

diff --git a/README b/README
index 1a47deaae11c8f78b85b04ba398226728d6db9f7fefde1db866b2337a7e916c2..ecb8ff1d3c0bb0624c31edd3747e67d3ba2f39f47e656f963282ab2907b0ad2c 100644 (file)
--- a/README
+++ b/README
@@ -29,7 +29,7 @@ You can specify the following configuration variables when building GIT:
    The filesystem traversing limit for getting the project list; the number
    is taken as depth relative to the projectroot.  It is used when
    GITWEB_LIST is a directory (or is not set; then project root is used).
-   Is is meant to speed up project listing on large work trees by limiting
+   This is meant to speed up project listing on large work trees by limiting
    search depth.  [Default: 2007]
  * GITWEB_LIST
    Points to a directory to scan for projects (defaults to project root
This page took 0.301697 seconds and 4 git commands to generate.