[PATCH] git-diff-*: --name-only and --name-only-z.
[gitweb.git] / diff-cache.c
index 33b3b3177990a42f06cf2e5723f22188f993ae30..e1ac57dde83ce9441d9b3d591b2eab6bd8560397 100644 (file)
@@ -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;