diff options
Diffstat (limited to 'diff-cache.c')
-rw-r--r-- | diff-cache.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/diff-cache.c b/diff-cache.c index 33b3b31779..e1ac57dde8 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -223,6 +223,14 @@ int main(int argc, const char **argv) diff_output_format = DIFF_FORMAT_MACHINE; continue; } + if (!strcmp(arg, "--name-only")) { + diff_output_format = DIFF_FORMAT_NAME; + continue; + } + if (!strcmp(arg, "--name-only-z")) { + diff_output_format = DIFF_FORMAT_NAME_Z; + continue; + } if (!strcmp(arg, "-R")) { diff_setup_opt |= DIFF_SETUP_REVERSE; continue; |