From: Michael J Gruber <git@drmicha.warpmail.net>
To: Jeff King <peff@peff.net>
Cc: Vincent van Ravesteijn <vfr@lyx.org>,
Git Mailing List <git@vger.kernel.org>,
bebarino@gmail.com, johan@herland.net
Subject: Re: Git notes list/show <revision-range>
Date: Tue, 19 Apr 2011 09:17:51 +0200 [thread overview]
Message-ID: <4DAD371F.9040003@drmicha.warpmail.net> (raw)
In-Reply-To: <20110418182724.GB11250@sigill.intra.peff.net>
Jeff King venit, vidit, dixit 18.04.2011 20:27:
> On Mon, Apr 18, 2011 at 08:19:59PM +0200, Vincent van Ravesteijn wrote:
>
>> When a feature/patch is proposed, it will "cook" for a while in "pu"
>> and "next". During this period people can comment on the patch. These
>> comments can be stored in git notes added to the commits on which is
>> commented.
>
> If you haven't already seen it, you might find the "notes/*" refs here:
>
> git://repo.or.cz/git/trast.git
>
> They reference the messages discussing the patch on the mailing list by
> message-id and gmane link.
>
>> That's why I want to (try to) implement the feature that 'git notes
>> list' and 'git notes show' accept a revision range and collect all
>> notes for the commits in this range.
>
> You can do more-or-less what you want with something like:
>
> git log --format="%h %s%n%N"
Exactly, the log family does that and more, since it makes the whole
revision walk machinery available.
But since the OP is volunteering to code for notes :-)
We could need a feature which allows to log the history of a note. The alias
`git noteslog' is aliased to `!sh -c 'git log $(git notes get-ref) "$@"' -'
gives you the history of the notes tree (try it with "-p"), but
sometimes I would like the history of the notes to a specific commit, and in
git noteslog -p -- $(commit)
I would have to use for $(commit) all possible breakdowns of the sha1 of
the commit for all possible notes tree structures. It feels as of the
revision walker needs to learn another pathspec, say
":(note):<sha1>"
in line with our magic pathspec discussion.
Michael
next prev parent reply other threads:[~2011-04-19 7:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 18:19 Git notes list/show <revision-range> Vincent van Ravesteijn
2011-04-18 18:27 ` Jeff King
2011-04-19 7:17 ` Michael J Gruber [this message]
2011-04-19 20:32 ` Jeff King
2011-04-20 7:16 ` Michael J Gruber
2011-04-20 7:35 ` Jeff King
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=4DAD371F.9040003@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=bebarino@gmail.com \
--cc=git@vger.kernel.org \
--cc=johan@herland.net \
--cc=peff@peff.net \
--cc=vfr@lyx.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).