summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-17 04:39:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-17 04:39:59 (GMT)
commit7fb0eaa289576a1dcd7751015ba791f1bce778a9 (patch)
tree76431538981b60bd62b95c810f3a18fe77f39355 /attr.h
parentdea4562bf5d1c27cd6c01b9cb65c3a8b8ee99a69 (diff)
downloadgit-7fb0eaa289576a1dcd7751015ba791f1bce778a9.zip
git-7fb0eaa289576a1dcd7751015ba791f1bce778a9.tar.gz
git-7fb0eaa289576a1dcd7751015ba791f1bce778a9.tar.bz2
git_attr(): fix function signature
The function took (name, namelen) as its arguments, but all the public callers wanted to pass a full string. Demote the counted-string interface to an internal API status, and allow public callers to just pass the string to the function. 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 69b5767..450f49d 100644
--- a/attr.h
+++ b/attr.h
@@ -8,7 +8,7 @@ struct git_attr;
* Given a string, return the gitattribute object that
* corresponds to it.
*/
-struct git_attr *git_attr(const char *, int);
+struct git_attr *git_attr(const char *);
/* Internal use */
extern const char git_attr__true[];