summaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-18 07:05:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-01-18 07:05:50 (GMT)
commitcd1dbd37d950f6592d3b84dc95c3863657c3aa7c (patch)
tree37d33539498a585f8afc28971590b1d98c9645ae /builtin-log.c
parent33256e6b1bfb597f6505a7f40554097035c9ab60 (diff)
parent68c2ec7f43c4dc16833ff58af76ab20e9cdfad17 (diff)
downloadgit-cd1dbd37d950f6592d3b84dc95c3863657c3aa7c.zip
git-cd1dbd37d950f6592d3b84dc95c3863657c3aa7c.tar.gz
git-cd1dbd37d950f6592d3b84dc95c3863657c3aa7c.tar.bz2
Merge branch 'jc/maint-format-patch'
* jc/maint-format-patch: format-patch: show patch text for the root commit
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c
index c1e2c6a..c7aa48e 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;