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>
This commit is contained in:
Junio C Hamano
2010-01-16 20:39:59 -08:00
parent dea4562bf5
commit 7fb0eaa289
9 changed files with 19 additions and 14 deletions

View File

@ -673,7 +673,7 @@ static void setup_delta_attr_check(struct git_attr_check *check)
static struct git_attr *attr_delta;
if (!attr_delta)
attr_delta = git_attr("delta", 5);
attr_delta = git_attr("delta");
check[0].attr = attr_delta;
}