diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-22 04:04:46 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-22 04:04:46 -0700 |
commit | 623ac4c89614c223571c5f027b3657fa5d17d971 (patch) | |
tree | cb8851d8de4752c7aee13cc8c5cd7311be87d75d /diff-index.c | |
parent | Merge branch 'jc/diff' into next (diff) | |
parent | Libified diff-index: backward compatibility fix. (diff) | |
download | tgif-623ac4c89614c223571c5f027b3657fa5d17d971.tar.xz |
Merge branch 'jc/diff' into next
* jc/diff:
Libified diff-index: backward compatibility fix.
Diffstat (limited to 'diff-index.c')
-rw-r--r-- | diff-index.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/diff-index.c b/diff-index.c index 4a243b3624..86940123b3 100644 --- a/diff-index.c +++ b/diff-index.c @@ -23,9 +23,7 @@ int main(int argc, const char **argv) for (i = 1; i < argc; i++) { const char *arg = argv[i]; - if (!strcmp(arg, "-m")) - match_missing = 1; - else if (!strcmp(arg, "--cached")) + if (!strcmp(arg, "--cached")) cached = 1; else usage(diff_cache_usage); @@ -37,5 +35,5 @@ int main(int argc, const char **argv) if (!rev.pending_objects || rev.pending_objects->next || rev.max_count != -1 || rev.min_age != -1 || rev.max_age != -1) usage(diff_cache_usage); - return run_diff_index(&rev, cached, match_missing); + return run_diff_index(&rev, cached); } |