diff options
Diffstat (limited to 'diff-cache.c')
-rw-r--r-- | diff-cache.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/diff-cache.c b/diff-cache.c index ff310ab357..383302abbc 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -153,7 +153,7 @@ static void mark_merge_entries(void) } static char *diff_cache_usage = -"git-diff-cache [-p] [-r] [-z] [-m] [-M] [-R] [--cached] <tree-ish>"; +"git-diff-cache [-p] [-r] [-z] [-m] [-M] [-C] [-R] [--cached] <tree-ish>"; int main(int argc, char **argv) { @@ -180,6 +180,12 @@ int main(int argc, char **argv) diff_score_opt = diff_scoreopt_parse(arg); continue; } + if (!strncmp(arg, "-C", 2)) { + generate_patch = 1; + detect_rename = 2; + diff_score_opt = diff_scoreopt_parse(arg); + continue; + } if (!strcmp(arg, "-z")) { line_termination = '\0'; continue; |