cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switch
By default, index compat macros are off from now on, because they could hide the_index dependency. Only those in builtin can use it. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
150fe065f7
commit
f8adbec9fe
@ -970,7 +970,7 @@ static int no_try_delta(const char *path)
|
||||
|
||||
if (!check)
|
||||
check = attr_check_initl("delta", NULL);
|
||||
git_check_attr(&the_index, path, check);
|
||||
git_check_attr(the_repository->index, path, check);
|
||||
if (ATTR_FALSE(check->items[0].value))
|
||||
return 1;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user