From: Jeff King <peff@peff.net>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: git@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH RFC] log-tree: let format-patch not indent notes
Date: Thu, 25 Sep 2014 13:56:52 -0400 [thread overview]
Message-ID: <20140925175651.GA11673@peff.net> (raw)
In-Reply-To: <1411661409-24562-1-git-send-email-u.kleine-koenig@pengutronix.de>
On Thu, Sep 25, 2014 at 06:10:09PM +0200, Uwe Kleine-König wrote:
> Commit logs as shown by git-log are usually indented by four spaces so
> here it makes sense to do the same for commit notes.
>
> However when using format-patch to create a patch for submission via
> e-mail the commit log isn't indented and also the "Notes:" header isn't
> really useful. So consequently don't indent and skip the header in this
> case. This also removes the empty line between the end-of-commit marker
> and the start of the notes.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
I like this, though I think it is somewhat subjective, and there may be
some corner cases. This topic has come up before (this is the tip of
what I dug up, but I did not bother reading back further myself):
http://article.gmane.org/gmane.comp.version-control.git/163144
You'd also need to consider what happens with non-default notes. If you
do "--show-notes=foo" then your header is more like:
Notes (foo):
blah blah blah
and your patch loses the information on the source. You may even be
pulling in from multiple sets of notes, in which case there are multiple
headers with multiple sources.
I wonder if we would need an option to say "I am showing notes, but from
just one ref and I prefer the simple three-dash format". Like
"--cover-notes[=<ref>]" or something. I dunno.
-Peff
prev parent reply other threads:[~2014-09-25 17:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 16:10 [PATCH RFC] log-tree: let format-patch not indent notes Uwe Kleine-König
2014-09-25 17:24 ` Junio C Hamano
2014-09-25 18:08 ` Uwe Kleine-König
2014-09-25 17:56 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140925175651.GA11673@peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).