summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2012-03-28 08:45:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-28 18:18:35 (GMT)
commit65c2b2b509796965b9a584e4d92fec2afc4470cd (patch)
tree2e1a318380f34fa9b98d7ed1d61345abaa393bc5 /attr.h
parenta7793a749115ead3b8f7447ce1e96572ea5d8ea3 (diff)
downloadgit-65c2b2b509796965b9a584e4d92fec2afc4470cd.zip
git-65c2b2b509796965b9a584e4d92fec2afc4470cd.tar.gz
git-65c2b2b509796965b9a584e4d92fec2afc4470cd.tar.bz2
correct a few doubled-word nits in comments and documentation
Found by running this command: $ git ls-files -z|xargs -0 perl -0777 -n \ -e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \ -e ' {' \ -e ' $n = ($` =~ tr/\n/\n/ + 1);' \ -e ' ($v = $&) =~ s/\n/\\n/g;' \ -e ' print "$ARGV:$n:$v\n";' \ -e ' }' Why not just git grep -E ...? That wouldn't work then the doubled words are separated by a newline. This is derived from a Makefile syntax-check rule in gnulib's maint.mk: http://git.sv.gnu.org/cgit/gnulib.git/tree/top/maint.mk Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/attr.h b/attr.h
index eb8ca0d..8b08d33 100644
--- a/attr.h
+++ b/attr.h
@@ -40,7 +40,7 @@ int git_check_attr(const char *path, int, struct git_attr_check *);
/*
* Retrieve all attributes that apply to the specified path. *num
- * will be set the the number of attributes on the path; **check will
+ * will be set to the number of attributes on the path; **check will
* be set to point at a newly-allocated array of git_attr_check
* objects describing the attributes and their values. *check must be
* free()ed by the caller.