From: Stephan Beyer Date: Sun, 06 Jul 2008 11:35:48 GMT Subject: Re: [PATCH] Allow cherry-picking root commits Message-ID: <20080706113548.GC6731@leksak.fem-net> In-Reply-To: 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 , PGP 0x6EDDD207FCC5040F