diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-16 20:39:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-16 20:39:59 -0800 |
commit | 7fb0eaa289576a1dcd7751015ba791f1bce778a9 (patch) | |
tree | 76431538981b60bd62b95c810f3a18fe77f39355 /convert.c | |
parent | rerere forget path: forget recorded resolution (diff) | |
download | tgif-7fb0eaa289576a1dcd7751015ba791f1bce778a9.tar.xz |
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 'convert.c')
-rw-r--r-- | convert.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -377,9 +377,9 @@ static void setup_convert_check(struct git_attr_check *check) static struct git_attr *attr_filter; if (!attr_crlf) { - attr_crlf = git_attr("crlf", 4); - attr_ident = git_attr("ident", 5); - attr_filter = git_attr("filter", 6); + attr_crlf = git_attr("crlf"); + attr_ident = git_attr("ident"); + attr_filter = git_attr("filter"); user_convert_tail = &user_convert; git_config(read_convert_config, NULL); } |