diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-01-24 15:29:12 +0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-01-24 11:55:06 -0800 |
| commit | f8adbec9feaa7a1ab9814db1115826e87033712e (patch) | |
| tree | 5049172d68705c068c5cc0ea40a3f6afcf443fa5 /builtin/pack-objects.c | |
| parent | 150fe065f71778a6591566d6fde65171569a4b7a (diff) | |
| download | git-f8adbec9feaa7a1ab9814db1115826e87033712e.tar.gz | |
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>
Diffstat (limited to 'builtin/pack-objects.c')
| -rw-r--r-- | builtin/pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 24bba8147f..d9d3b90b23 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -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; |
