summaryrefslogtreecommitdiffstats
path: root/builtin/write-tree.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-01-24 09:29:12 +0100
committerJunio C Hamano <gitster@pobox.com>2019-01-24 20:55:06 +0100
commitf8adbec9feaa7a1ab9814db1115826e87033712e (patch)
tree5049172d68705c068c5cc0ea40a3f6afcf443fa5 /builtin/write-tree.c
parentread-cache.c: remove the_* from index_has_changes() (diff)
downloadgit-f8adbec9feaa7a1ab9814db1115826e87033712e.tar.xz
git-f8adbec9feaa7a1ab9814db1115826e87033712e.zip
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/write-tree.c')
-rw-r--r--builtin/write-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/write-tree.c b/builtin/write-tree.c
index cdcbf8264e..3d46d22ee5 100644
--- a/builtin/write-tree.c
+++ b/builtin/write-tree.c
@@ -3,6 +3,7 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
+#define USE_THE_INDEX_COMPATIBILITY_MACROS
#include "builtin.h"
#include "cache.h"
#include "config.h"