Re: [RFC] git-split: Split the history of a git repository by subdirectories and ranges
- From
Junio C Hamano <junkio@cox.net>
- Date
- Sep 27, 2006, 19:08 UTC
- Message-ID
- <7vr6xxb00m.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <451A6788.5030808@shadowen.org>
Andy Whitcroft <apw@shadowen.org> writes:
Show 8 quoted lines
>> You are handling grafts by hand because --pretty=raw is special >> in that it displays the real parents (although traversal does >> use grafts). Maybe it would have helped if we had a --pretty >> format that is similar to raw but rewrites the parents? > > I have wondered recently why grafts are hidden in this way. I feel they > are something I want to know is occuring in my history as this history > is being manipulated.
Just to make sure we are on the same page, only "raw" format output is special and it is special only on output. Ancestry traversal always honors what you have in grafts.
However, you can do:
$ git rev-list --parents --pretty=raw
which would give you "commit $this_commit $its $parents" lines and "parent $true_parent" lines at the same time.
And they will be inconsistent when you have grafts or path limiter. The former honor grafts and path limiter, and the latter show the true set of parents.