Re: [PATCH 4/2] Fix parent rewriting in --early-output
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 13, 2007, 18:53 UTC
- Message-ID
- <7vbq9yt1te.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <18233.30098.470244.421468@cargo.ozlabs.ibm.com>
Paul Mackerras <paulus@samba.org> writes:
Show 6 quoted lines
> In fact it would be easier for me if, instead of getting the id of > some random ancestor commit, I got an explicit indication to say > "unknown parent", such as just a "-" in place of the id of the > unknown parent(s). Would that be doable? I could then just not do > the processing for any unknown parent, and make sure to do it when I > see the final version of the commit.
I suspect that a "-" in place of a commit object name may not be enough for your purpose, as the _number_ of parents can later change in the later re-output.
I wonder if the presense of "incomplete" on the "Final output" line is a good enough indication for that. That is, until you see "Final output: $N done", you will treat the parent information as unreliable.