From: Junio C Hamano Date: Thu, 12 Jan 2012 18:25:17 GMT Subject: Re: [BUG] multi-commit cherry-pick messes up the order of commits Message-ID: <7vaa5s3hiq.fsf@alter.siamese.dyndns.org> In-Reply-To: Ramkumar Ramachandra writes: > What are your thoughts on making it a flag in the revision API to be > activated with "cherry-pick --literal-order commit1 commit3 commit2" > or similar? That is an insane UI for the sake of flexibility. You should be able to look at revs->cmdline and tell if you need to let cherry-pick walk (i.e. "cherry-pick master..next"), or if the user wants individual commits (i.e. "cherry-pick A B C"). And you do prepare_revision_walk() only when you need to walk; otherwise you use the contents of revs->pending in order.