git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: Vitor Antunes <vitor.hda@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git fast-import : How to change parent during import?
Date: Tue, 8 Mar 2011 16:23:28 -0600	[thread overview]
Message-ID: <20110308222328.GE26471@elie> (raw)
In-Reply-To: <AANLkTini6NgeYxRdFtSDKe8GEEszDvXwRtLnuymiRNt4@mail.gmail.com>

Hi,

Vitor Antunes wrote:
> On Tue, Mar 8, 2011 at 2:44 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:

>> The advice in the section "Use Tag Fixup Branches" of git-fast-import(1)
>> might be useful.
>
> I'm still trying to understand it. Do you know of any practical
> example that I can look into?

It's likely I misunderstood what you're trying to do.  If you have
some work in progress, I'd be glad to look at it.

Anyway, concerning tag fixup branches: git://repo.or.cz/cvs2svn.git
has an example in cvs2svn_lib/git_output_option.py::process_tag_commit.
The idea is to make commits that don't belong to any branch on a
separate TAG_FIXUP ref, using the "reset" command where appropriate;
then the resulting commits can be inspected, merged, reset to, or used
in some other way later.

The "tag fixup" idea is that in VCSes like CVS, tags do not
necessarily match the content on any branch.  So the history looks
somewhat like so (time flowing left to right):

                     TAG
                    /
 o --- o --- o --- o --- o --- o ...

instead of the perhaps more sensible

 o --- o --- o --- TAG --- o --- o ...

The side branch leading up to a tag does not correspond to any branch
name; after it is in the correct state one can use the "tag" command
to get it remembered in permanent history.  The same technique might
be useful whenever you are creating history that is not meant to stay
permanently on any branch.

Jonathan

  reply	other threads:[~2011-03-08 22:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08  1:21 git fast-import : How to change parent during import? Vitor Antunes
2011-03-08  2:44 ` Jonathan Nieder
2011-03-08 21:19   ` Vitor Antunes
2011-03-08 22:23     ` Jonathan Nieder [this message]
2011-03-09 14:21       ` Vitor Antunes
2011-03-30 17:25       ` Vitor Antunes
2011-08-28 15:23   ` Vitor Antunes
2011-08-28 23:39     ` Jonathan Nieder
2011-08-29  1:13       ` Sverre Rabbelier

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=20110308222328.GE26471@elie \
    --to=jrnieder@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=vitor.hda@gmail.com \
    /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).