Re: Finding the name of the parent branch?
- From
Pascal Obry <pascal@obry.net>
- Date
- Jan 30, 2009, 13:35 UTC
- Message-ID
- <a2633edd0901300535mf2d9ceemd9e9009e0aa18b40@mail.gmail.com>
- In-Reply-To
- <adf1fd3d0901300516y3d1bf58dmda9c5172586d828@mail.gmail.com>
Santi,
> Maybe if you explain why you want it (a use case) instead of just this > specific problem...
To know the proper merge base to display all commits done on a specific topic branch.
Show 11 quoted lines
>>> Just a counterexample, just rearranging you graph: >>> >>> o---B >>> / >>> o---2---o---o---o---C >>> / >>> ---o---1---o---o---o---A >>> >>> From you description: For B I would get C and for C I would get A. > > Please, if you quote text do not edit it (the 1 and the 2 in this case).
Well I've just added 1 and 2, nothing changed in the semantic!
Show 6 quoted lines
> Yes. Compare your sentence and mine: > > For B I want to get A and for C I want to get B. > For B I would get C and for C I would get A. > > So for B you get A while I get C, and the equivalent for C.
Ok, that's expected since you have renamed B to C and C to B.
My tree was:
o---o---o---C
/
o---o---o---B
/
---o---o---o---o---o---AYour's was:
o---B
/
o---o---o---o---o---C
/
---o---o---o---o---o---ASo when I said:
For B I want to get A and for C I want to get B.
It is equivalent to your (just rename B and C).:
For B I would get C and for C I would get A.
Frankly I do not see your point... That's maybe the cause of the problem I'm having....
Pascal.
-- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595