# Re: What's in git.git

2 messages from 2006-02-17 to 2006-02-18. Participants: linux@horizon.com, Junio C Hamano.
Thread: https://gitlist.dev/t/3372

## linux@horizon.com, 2006-02-17 14:28

Subject: Re: What's in git.git
Message-ID: <20060217142836.13137.qmail@science.horizon.com>
URL: https://gitlist.dev/e/20060217142836.13137.qmail%40science.horizon.com

```
 - "Rebase to different branch" (1 commit):

   This was previously discussed on the list.  With this command
   line:

    	$ git rebase --onto master~1 master topic
    
   would rebase this ancestry graph to:
    
              A---B---C topic
             /
        D---E---F---G master
    
    
   another graph that looks like this:
    
                  A'--B'--C' topic
                 /
        D---E---F---G master

   Earlier, you couldn't rebase to anywhere other than on top of
   "the other branch".


Er... what does this do, again?  I couldn't find the list discussion, and
I can get this exact effect in vanilla 1.2.1 with "git rebase master~1 topic".
AFAIK, $ARGV[1] of git-rebase only has to be a commit-ish, not a branch.

OTOH, I can imagine wanting
	$ git-rebase master~1 topic topic~2

to produce

              A   B---C topic
             /   /
        D---E---F---G master

H'm... I wonder if the same syntax could be used to resolve the ambiguous
case where there are multiple possible common ancestors, e.g.

              A---B---C topic
             /   /
        D---E---F---G master

as discussed in the "git rebase behaviour changed?" thread...

```

## Junio C Hamano, 2006-02-18 06:49

Subject: Re: What's in git.git
Message-ID: <7vzmkpupo3.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vzmkpupo3.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20060217142836.13137.qmail@science.horizon.com>

```
linux@horizon.com writes:

> Er... what does this do, again?  I couldn't find the list
> discussion, and I can get this exact effect in vanilla 1.2.1
> with "git rebase master~1 topic".
>...
> OTOH, I can imagine wanting
>...
>               A   B---C topic
>              /   /
>         D---E---F---G master

Yup.  The example was a bad one, but the above, and in general

         X---A'--B'--C' topic

         D---E---F---G master

on an arbitrary X was what I wanted to do.

```
