diff options
Diffstat (limited to 'diff-files.c')
-rw-r--r-- | diff-files.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/diff-files.c b/diff-files.c index c36bcf25bc..d020254922 100644 --- a/diff-files.c +++ b/diff-files.c @@ -7,7 +7,7 @@ #include "diff.h" static const char *diff_files_usage = -"git-diff-files [-p] [-q] [-r] [-z] [-M] [-R] [paths...]"; +"git-diff-files [-p] [-q] [-r] [-z] [-M] [-C] [-R] [paths...]"; static int generate_patch = 0; static int line_termination = '\n'; @@ -71,6 +71,11 @@ int main(int argc, char **argv) diff_score_opt = diff_scoreopt_parse(argv[1]); detect_rename = generate_patch = 1; } + else if (!strncmp(argv[1], "-C", 2)) { + diff_score_opt = diff_scoreopt_parse(argv[1]); + detect_rename = 2; + generate_patch = 1; + } else usage(diff_files_usage); argv++; argc--; |