cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switch
[gitweb.git] / builtin / merge-tree.c
index 70f6fc916765c5a5ca67c2dfe72e0480128182e3..53719e0b9d3f9eb683b0809488ea354391639a58 100644 (file)
@@ -1,3 +1,4 @@
+#define USE_THE_INDEX_COMPATIBILITY_MACROS
 #include "builtin.h"
 #include "tree-walk.h"
 #include "xdiff-interface.h"
@@ -76,7 +77,8 @@ static void *result(struct merge_list *entry, unsigned long *size)
        their = NULL;
        if (entry)
                their = entry->blob;
-       return merge_blobs(&the_index, path, base, our, their, size);
+       return merge_blobs(the_repository->index, path,
+                          base, our, their, size);
 }
 
 static void *origin(struct merge_list *entry, unsigned long *size)