Re: [PATCH 2/2] Look for a commit's parents in the standard way.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 22, 2006, 06:42 UTC
- Message-ID
- <7vd5ats24g.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <b0943d9e0608200343t517ec29dw2b6b49d9d69dbad5@mail.gmail.com>
"Catalin Marinas" <catalin.marinas@gmail.com> writes:
Show 6 quoted lines
> On 14/08/06, Yann Dirson <ydirson@altern.org> wrote: >> This has the direct effect of taking info/grafts into account, since >> ignoring it only causes confusion. > > I don't know the difference but is there any between parsing the > commit file and using git-rev-list --parents?
If you mean parsing "cat-file commit" output vs "rev-list --parents" output, the former shows the true parents while the latter shows a list of parents adjusted with information in the grafts file.
If you are using pathspec then the latter further simplifies the parent list, but you know that already and you are not using that form here.