Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
format-patch: use the diff options for the cover letter, too
[gitweb.git]
/
builtin-log.c
diff --git
a/builtin-log.c
b/builtin-log.c
index bbadbc0de2fe1a2c85f3488420172a4db2ab6b4a..fd9b3ae95ea8da03780f93382dd817a11cdbb9f3 100644
(file)
--- a/
builtin-log.c
+++ b/
builtin-log.c
@@
-694,8
+694,8
@@
static void make_cover_letter(struct rev_info *rev, int use_stdout,
if (!origin)
return;
-
diff_setup(&opts
);
- opts.output_format
|
= DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
+
memcpy(&opts, &rev->diffopt, sizeof(opts)
);
+ opts.output_format = DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
diff_setup_done(&opts);