Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
add_file_to_index: skip rehashing if the cached stat already matches
[gitweb.git]
/
builtin-diff-index.c
diff --git
a/builtin-diff-index.c
b/builtin-diff-index.c
index d90eba95a6be17bd0486e0311c2657b1f69ab7d9..81e7167438ecfc25a6f9a317af663034d653588e 100644
(file)
--- a/
builtin-diff-index.c
+++ b/
builtin-diff-index.c
@@
-23,7
+23,7
@@
int cmd_diff_index(int argc, const char **argv, const char *prefix)
argc = setup_revisions(argc, argv, &rev, NULL);
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
-
+
if (!strcmp(arg, "--cached"))
cached = 1;
else