1
0
mirror of https://github.com/git/git.git synced 2024-10-01 14:11:31 +02:00
git/compat
Jim Meyering 0353a0c4ec 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>
2011-04-13 11:59:11 -07:00
..
fnmatch
nedmalloc remove doubled words, e.g., s/to to/to/, and fix related typos 2011-04-13 11:59:11 -07:00
regex
vcbuild
win32
basename.c
bswap.h
cygwin.c
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c remove doubled words, e.g., s/to to/to/, and fix related typos 2011-04-13 11:59:11 -07:00
mingw.h
mkdtemp.c
mmap.c
msvc.c
msvc.h
pread.c
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtok_r.c
strtoumax.c
unsetenv.c
win32.h
win32mmap.c
winansi.c