From: Jelmer Vernooij <jelmer@samba.org>
To: Jeff King <peff@peff.net>
Cc: Avery Pennarun <apenwarr@gmail.com>,
Ben Gamari <bgamari@gmail.com>, git <git@vger.kernel.org>
Subject: Re: Storing (hidden) per-commit metadata
Date: Mon, 22 Feb 2010 15:57:39 +0100 [thread overview]
Message-ID: <1266850659.4575.156.camel@ganieda> (raw)
In-Reply-To: <20100221063433.GA2840@coredump.intra.peff.net>
[-- Attachment #1: Type: text/plain, Size: 2014 bytes --]
On Sun, 2010-02-21 at 01:34 -0500, Jeff King wrote:
> On Sat, Feb 20, 2010 at 01:57:31PM -0500, Avery Pennarun wrote:
> > As for git-notes, they sound like they would be useful for this sort
> > of thing. I haven't tried them yet, but my understanding is that
> > notes anywhere other than the "default" notes ref are not shown in
> > commit messages, so you can use them for whatever you want.
> I would want to hear more about the actual data being stored. The
> strength of notes is that you can _change_ them after the commit has
> been created. And the price you pay is that they are more annoying to
> move around, because they are in a totally different ref.
>
> If this is data that is being generated at the time the commit is
> created and then set in stone, then it probably should be part of the
> commit object.
This data is supposed to be set in stone, since Bazaar revisions are
intended to be immutable, like Git commits are.
For each file we would need to store:
* the Bazaar revision id
* any Bazaar revision properties. This is typically a list of URLs of
bugs that were fixed, name of the branch the commit was on, any
additional parents, or anything arbitrary set by plugins (e.g. the
rebase plugin sets 'rebase-of' to the id of the original revision)
* For each file that was added or moved around in the revision, a path
to fileid mapping
* Optionally, a list of ghost parent ids and "unusual" revisions for
each file but these should be rare.
This is at least a couple of lines of data and in some cases a lot more.
I would rather avoid confronting git users who don't care about Bazaar
with it.
> If the only problem is that the data is ugly in "git show", then perhaps
> we need a "suppress these pseudo-headers" feature for showing logs. It
> keeps them easily available for inspection or for --grep, but most of
> the time you would not see them.
That seems like a sensible thing to do, and would work well for me.
Cheers,
Jelmer
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2010-02-22 14:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-19 17:11 Storing (hidden) per-commit metadata Jelmer Vernooij
2010-02-20 17:41 ` Ben Gamari
2010-02-20 18:57 ` Avery Pennarun
2010-02-21 6:34 ` Jeff King
2010-02-21 8:49 ` Johannes Schindelin
2010-02-21 8:52 ` Jeff King
2010-02-21 12:17 ` Jelmer Vernooij
2010-02-22 5:17 ` Dmitry Potapov
2010-02-22 9:56 ` Jelmer Vernooij
2010-02-22 11:28 ` Dmitry Potapov
2010-02-22 11:59 ` Jelmer Vernooij
2010-02-22 13:08 ` Dmitry Potapov
2010-02-22 13:44 ` Jelmer Vernooij
2010-02-22 14:20 ` Dmitry Potapov
2010-02-22 19:13 ` Jelmer Vernooij
2010-02-22 14:57 ` Jelmer Vernooij [this message]
2010-02-22 5:11 ` Gabriel Filion
2010-02-22 9:49 ` Jelmer Vernooij
2010-02-22 22:13 ` "Alejandro R. Sedeño"
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=1266850659.4575.156.camel@ganieda \
--to=jelmer@samba.org \
--cc=apenwarr@gmail.com \
--cc=bgamari@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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).