Re: [PATCH] Allow cherry-picking root commits
- From
Stephan Beyer <s-beyer@gmx.net>
- Date
- Jul 6, 2008, 11:35 UTC
- Message-ID
- <20080706113548.GC6731@leksak.fem-net>
- In-Reply-To
- <alpine.DEB.1.00.0807041617320.9925@racer>
On Fri, Jul 04, Johannes Schindelin wrote:
> + if (!commit->parents) {
> + if (action == REVERT)
> + die ("Cannot revert a root commit");I btw wondered why _reverting_ a root commit should not work. Then I tried to quickly add this feature and saw what's the point: merge-recursive wants a remote -- this
> + argv[i++] = next_sha1;
to be set :) So the change is not as trivial as I thought. And yes, there may even be no use case for reverting root commits.
Regards, Stephan
-- Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F