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

@ -198,7 +198,7 @@ struct userdiff_driver *userdiff_find_by_path(const char *path)
struct git_attr_check check;
if (!attr)
attr = git_attr("diff", 4);
attr = git_attr("diff");
check.attr = attr;
if (!path)