diff options
Diffstat (limited to 'diff-tree.c')
-rw-r--r-- | diff-tree.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/diff-tree.c b/diff-tree.c index ea237051ee..f499d2ead5 100644 --- a/diff-tree.c +++ b/diff-tree.c @@ -480,6 +480,14 @@ int main(int argc, const char **argv) find_copies_harder = 1; 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, "-z")) { diff_output_format = DIFF_FORMAT_MACHINE; continue; |