Re: [PATCH 2/2] format-patch: --inline-single
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 21, 2013, 23:47 UTC
- Message-ID
- <7v38wptekq.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7v7gm1teuf.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 19 quoted lines
> Jeff King <peff@peff.net> writes: > >>> @@ -421,6 +443,9 @@ void pp_user_info(const struct pretty_print_context *pp, >>> if (pp->mailmap) >>> map_user(pp->mailmap, &mailbuf, &maillen, &namebuf, &namelen); >>> >>> + if (pp->inline_single && is_current_user(pp, mailbuf, maillen, namebuf, namelen)) >>> + return; >>> + >>> strbuf_init(&mail, 0); >>> strbuf_init(&name, 0); >> >> This makes sense to suppress the user line when it is not necessary. But >> we should probably always be suppressing the Date line, as it is almost >> always useless. > > When I (figuratively) am sending my patch in a discussion, saying > "You could do it this way", on the other hand, I agree that the date > is uninteresting.
Just in case somebody is wondering, please s/, on the other hand//; above. I swapped the paragraphs after I wrote them X-<.