X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-log.c;h=c7aa48e74821b9b8aea2f99041cf323c9057c8da;hb=cd1dbd37d950f6592d3b84dc95c3863657c3aa7c;hp=c1e2c6a4c53a7b1b40f3868a0288a6be4c7cb247;hpb=788872395f88b64159c30ca73d61923facd84217;p=git.git diff --git a/builtin-log.c b/builtin-log.c index c1e2c6a4c..c7aa48e74 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -936,6 +936,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;