Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff.c: remove implicit dependency on the_index
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index 86134e56a6819b2417a7fe16bc3594d320a34526..6f772b2885c109e6f063acd5cfb038d826b00b0d 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-2137,7
+2137,7
@@
int index_has_changes(struct index_state *istate,
if (tree || !get_oid_tree("HEAD", &cmp)) {
struct diff_options opt;
-
diff_setup(
&opt);
+
repo_diff_setup(the_repository,
&opt);
opt.flags.exit_with_status = 1;
if (!sb)
opt.flags.quick = 1;