From: "Felipe Contreras" <felipe.contreras@gmail.com>
To: "John Chapman" <thestar@fussycoder.id.au>
Cc: "git list" <git@vger.kernel.org>
Subject: Re: Memory issue with fast-import, why track branches?
Date: Sun, 21 Dec 2008 13:23:05 +0200 [thread overview]
Message-ID: <94a0d4530812210323q2ae392d5o2381fd990be708e8@mail.gmail.com> (raw)
In-Reply-To: <1229847042.798.5.camel@therock.nsw.bigpond.net.au>
On Sun, Dec 21, 2008 at 10:10 AM, John Chapman <thestar@fussycoder.id.au> wrote:
> My first response was along the lines of "Why the heck are you storing
> sha1's like that!?", until I realised that you're not storing actual git
> sha1's, but mtn's hashes, which does make sense.
Yes :)
> I'm doing something very similar with my perforce scripts, however I am
> doing a bit more magic instead of making so many branches.
>
> Instead of making branches, I make a tag instead, for each and every
> changeset. Every time I make a new git commit, if I need to do it from
> a tag, I first read the tag and determine the sha1 I should use, and use
> that instead.
Well, simple tags and branches are exactly the same thing: refs. tags
are in 'refs/tags' and branches in 'refs/heads'; 'refs/mtn' are not
really branches.
> Alternatively, you could choose to manage your mapping yourself, and
> write them to a .git/mtg-git-map file.
The advantage of my approach is that the git tools handle all the mtn
sha1's almost as good as git sha1's, I just need to prepend 'mtn/'.
Also, git name-rev finds the mtn revision of a git commit. It' all so
convenient.
The only problem is that fast-import seems to be doing something wrong
with those "branches".
--
Felipe Contreras
next prev parent reply other threads:[~2008-12-21 11:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-21 5:54 Memory issue with fast-import, why track branches? Felipe Contreras
2008-12-21 8:10 ` John Chapman
2008-12-21 11:23 ` Felipe Contreras [this message]
2008-12-21 22:17 ` Shawn O. Pearce
2008-12-22 2:36 ` Felipe Contreras
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=94a0d4530812210323q2ae392d5o2381fd990be708e8@mail.gmail.com \
--to=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=thestar@fussycoder.id.au \
/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).