dir: convert is_excluded to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e799ed408e
commit
a0bba65b10
@ -1634,7 +1634,7 @@ static int check_ok_to_remove(const char *name, int len, int dtype,
|
||||
return 0;
|
||||
|
||||
if (o->dir &&
|
||||
is_excluded(o->dir, name, &dtype))
|
||||
is_excluded(o->dir, &the_index, name, &dtype))
|
||||
/*
|
||||
* ce->name is explicitly excluded, so it is Ok to
|
||||
* overwrite it.
|
||||
|
Reference in New Issue
Block a user