git-branch -D: make it work even when on a yet-to-be-born branch
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 2dcad1942c0f5137d93ebf709439eb385a4ae500..33153787b8117396cf906e69e656849ac04f3257 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1760,6 +1760,7 @@ int diff_setup_done(struct diff_options *options)
        if (options->output_format & (DIFF_FORMAT_PATCH |
                                      DIFF_FORMAT_NUMSTAT |
                                      DIFF_FORMAT_DIFFSTAT |
+                                     DIFF_FORMAT_SUMMARY |
                                      DIFF_FORMAT_CHECKDIFF))
                options->recursive = 1;
        /*