X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=ws.c;h=6e69877f25791632d98bf7b109a2eaebd04c96af;hb=1fc5279fdb083fdd2bce0aa43cce6ada01499a4e;hp=a64ab51e09a99e190e5f1912de19b1e093feb360;hpb=35e54ea2e0e6fd742a0de6a9b66e5f53eebb3f3d;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) */