From: Eric Blake <eblake@redhat.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: git format-patch should honor notes
Date: Tue, 07 Dec 2010 14:53:09 -0700 [thread overview]
Message-ID: <4CFEACC5.70005@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1851 bytes --]
I'm just starting to experiment with 'git notes', because it seems to
fit well with my workflow on several projects, except for one drawback.
My workflow is that I post patch series for upstream review via 'git
send-email'. Often, that results in feedback that requires me to
amend/rebase my series, and post a v2 or v3 of the series. By adding
'git config notes.rewriteRef refs/notes/commits', I can add notes that
will carry across my rebase, and remind me what I changed in v2 (for
example, git notes add -m 'v2: fix foo, per mail xyz@example.com').
This is handy for me, and I think it is also handy for reviewers -
someone who took the time to read through v1 should know what I changed
in response to their comments, and only have to focus in on commits with
changes, rather than on the entire resent series.
However, I think such review helps are informational only - that is, in
'git send-email' parlance, they belong between the '-- ' and diffstat
lines of the email, and not in the upstream commit. After all, once my
series is finally accepted upstream, it will no longer be rebased, and
'git bisect' sees only the final version. I see no reason for the
commit message to carry the cruft of extra information that was only
helpful during reviewing the amended series, nor any reason why upstream
should carry around my notes.
So, what I'm missing is the ability for 'git send-email' (or more
fundamentally, 'git format-patch') to be able to include contents of a
particular (set of) notes reference in each patch file it generates,
where the note falls in the informative portion of the email, and is
intentionally omitted from the upstream commit when someone else runs
'git am' on my email.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]
next reply other threads:[~2010-12-07 21:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 21:53 Eric Blake [this message]
2010-12-07 22:10 ` git format-patch should honor notes Junio C Hamano
2010-12-07 22:11 ` Jeff King
2010-12-08 8:20 ` Michael J Gruber
2010-12-08 10:12 ` Johan Herland
2010-12-08 10:24 ` Michael J Gruber
2010-12-08 10:50 ` Johan Herland
2010-12-08 11:15 ` Thomas Rast
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=4CFEACC5.70005@redhat.com \
--to=eblake@redhat.com \
--cc=git@vger.kernel.org \
/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).