diff options
author | Jim Meyering <jim@meyering.net> | 2011-04-13 17:39:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-13 11:59:11 -0700 |
commit | 0353a0c4ec91cf2d0a8e209025aa2e1909d05f19 (patch) | |
tree | d50a8eec64a6785ff37ef49210e539d9c5b1104c /sha1_file.c | |
parent | 5e31075a19acdd242996c83728b3c8e965af0d7b (diff) | |
download | git-0353a0c4ec91cf2d0a8e209025aa2e1909d05f19.tar.gz git-0353a0c4ec91cf2d0a8e209025aa2e1909d05f19.tar.xz |
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 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index df0edbad1..889fe7183 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1534,7 +1534,7 @@ static int unpack_object_header(struct packed_git *p, enum object_type type; /* use_pack() assures us we have [base, base + 20) available - * as a range that we can look at at. (Its actually the hash + * as a range that we can look at. (Its actually the hash * size that is assured.) With our object header encoding * the maximum deflated object size is 2^137, which is just * insane, so we know won't exceed what we have been given. |