Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1-name.c: remove implicit dependency on the_index
[gitweb.git]
/
builtin
/
diff-tree.c
diff --git
a/builtin/diff-tree.c
b/builtin/diff-tree.c
index ef996126d7b521ea1de2c837e4ed97fdcb6f1e71..42bc1eb41db8287ab9f64445ec2a151f216d8840 100644
(file)
--- a/
builtin/diff-tree.c
+++ b/
builtin/diff-tree.c
@@
-165,7
+165,7
@@
int cmd_diff_tree(int argc, const char **argv, const char *prefix)
if (opt->diffopt.detect_rename) {
if (!the_index.cache)
- re
ad_index(&the_index
);
+ re
po_read_index(the_repository
);
opt->diffopt.setup |= DIFF_SETUP_USE_SIZE_CACHE;
}
while (fgets(line, sizeof(line), stdin)) {