summaryrefslogtreecommitdiff
path: root/compat/mingw.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-04-13 15:39:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-13 18:59:11 (GMT)
commit0353a0c4ec91cf2d0a8e209025aa2e1909d05f19 (patch)
treed50a8eec64a6785ff37ef49210e539d9c5b1104c /compat/mingw.c
parent5e31075a19acdd242996c83728b3c8e965af0d7b (diff)
downloadgit-0353a0c4ec91cf2d0a8e209025aa2e1909d05f19.zip
git-0353a0c4ec91cf2d0a8e209025aa2e1909d05f19.tar.gz
git-0353a0c4ec91cf2d0a8e209025aa2e1909d05f19.tar.bz2
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>
Diffstat (limited to 'compat/mingw.c')
-rw-r--r--compat/mingw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index 878b1de..4423961 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -1130,7 +1130,7 @@ char **make_augmented_environ(const char *const *vars)
/*
* Note, this isn't a complete replacement for getaddrinfo. It assumes
- * that service contains a numerical port, or that it it is null. It
+ * that service contains a numerical port, or that it is null. It
* does a simple search using gethostbyname, and returns one IPv4 host
* if one was found.
*/