X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=ws.c;h=6e69877f25791632d98bf7b109a2eaebd04c96af;hb=14b58c62bcd60b7b5bfbb895eb869f7d1d64a9b7;hp=a64ab51e09a99e190e5f1912de19b1e093feb360;hpb=227124b27178dca25a64d6e9d1f1d9eaf27f34de;p=thirdparty%2Fgit.git diff --git a/ws.c b/ws.c index a64ab51e09..6e69877f25 100644 --- a/ws.c +++ b/ws.c @@ -3,7 +3,6 @@ * * Copyright (c) 2007 Junio C Hamano */ - #include "cache.h" #include "attr.h" @@ -71,7 +70,7 @@ unsigned parse_whitespace_rule(const char *string) return rule; } -unsigned whitespace_rule(const char *pathname) +unsigned whitespace_rule(struct index_state *istate, const char *pathname) { static struct attr_check *attr_whitespace_rule; const char *value; @@ -79,7 +78,7 @@ unsigned whitespace_rule(const char *pathname) if (!attr_whitespace_rule) attr_whitespace_rule = attr_check_initl("whitespace", NULL); - git_check_attr(&the_index, pathname, attr_whitespace_rule); + git_check_attr(istate, pathname, attr_whitespace_rule); value = attr_whitespace_rule->items[0].value; if (ATTR_TRUE(value)) { /* true (whitespace) */