format-patch: show patch text for the root commit
[gitweb.git] / builtin-log.c
index db71e0da745ee480f8705c81f2899daf1dc6c4f5..5e302906fb026ca2ed9bd110780aefb058c0c36e 100644 (file)
@@ -962,6 +962,13 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
                 * get_revision() to do the usual traversal.
                 */
        }
+
+       /*
+        * We cannot move this anywhere earlier because we do want to
+        * know if --root was given explicitly from the comand line.
+        */
+       rev.show_root_diff = 1;
+
        if (cover_letter) {
                /* remember the range */
                int i;