git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Avery Pennarun <apenwarr@gmail.com>
To: Ben Gamari <bgamari@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: Storing (hidden) per-commit metadata
Date: Sat, 20 Feb 2010 13:57:31 -0500	[thread overview]
Message-ID: <32541b131002201057t31fc8a6aydb0942171fe1b8c8@mail.gmail.com> (raw)
In-Reply-To: <1266687636-sup-7641@ben-laptop>

On Sat, Feb 20, 2010 at 12:41 PM, Ben Gamari <bgamari@gmail.com> wrote:
> Excerpts from Jelmer Vernooij's message of Fri Feb 19 12:11:25 -0500 2010:
>> To allow round-tripping pushes from Bazaar into Git, I'm looking for a
>> good place to store Bazaar semantics that can not be represented in Git
>> at the moment. This data should ideally be hidden from the user as much
>> as possible; it would e.g. contain mappings from git hashes to Bazaar
>> ids.
>>
> Are you sure you want to hide this? I believe git-svn puts this
> information in its commit messages (although I don't know whether it's
> stored elsewhere as well).

Note that git-svn doesn't store *all* the stuff from svn in the git
repository.  So you couldn't, for example, regenerate an svn repo
identical to the original from its git-svn clone.  This limitation is
rarely noticed since the stuff git-svn doesn't store is stuff that git
mostly does differently/automatically/etc.  But that's why git-svn can
get away with cluttering your commit messages with "only" one line of
git-svn cruft each.

However, this does bring up the question: how important is it *really*
to be able to "round trip" from bzr to git and back without losing
information?  Maybe you only need to store enough information to pull
from bzr and then push back your commits.

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.

Have fun,

Avery

  reply	other threads:[~2010-02-20 18: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 [this message]
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
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=32541b131002201057t31fc8a6aydb0942171fe1b8c8@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=bgamari@gmail.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).