diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-10-17 15:55:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-17 15:55:18 -0700 |
commit | 046180ad9dd36f739f22b1d05b17b23b8c96ce49 (patch) | |
tree | 9dd69596ad88648dc3f5332650011eb2784c09cc /pretty.c | |
parent | d6a58b7773d142ab6da47eca94f83b9c8e6dad5e (diff) | |
parent | 662cc30cd048f2ccd7ba8d1540e0768ae264c0dd (diff) | |
download | git-046180ad9dd36f739f22b1d05b17b23b8c96ce49.tar.gz git-046180ad9dd36f739f22b1d05b17b23b8c96ce49.tar.xz |
Merge branch 'jk/format-patch-from'
"format-patch --from=<whom>" forgot to omit unnecessary in-body
from line, i.e. when <whom> is the same as the real author.
* jk/format-patch-from:
format-patch: print in-body "From" only when needed
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -432,7 +432,7 @@ void pp_user_info(struct pretty_print_context *pp, map_user(pp->mailmap, &mailbuf, &maillen, &namebuf, &namelen); if (pp->fmt == CMIT_FMT_EMAIL) { - if (pp->from_ident) { + if (pp->from_ident && ident_cmp(pp->from_ident, &ident)) { struct strbuf buf = STRBUF_INIT; strbuf_addstr(&buf, "From: "); |