From: Björn Steinbrink Date: Tue, 08 Dec 2009 19:13:24 GMT Subject: Re: [PATCH RFC] rebase: add --revisions flag Message-ID: <20091208191324.GA4200@atjola.homenet> In-Reply-To: <20091208164904.GB32204@redhat.com> On 2009.12.08 18:49:04 +0200, Michael S. Tsirkin wrote: > On Tue, Dec 08, 2009 at 05:41:13PM +0100, Björn Steinbrink wrote: > > > > Also, AFAICT this needs to be called like this: > > > > git rebase --revisions foo..bar HEAD > > > > > > > > Changing the meaning of the argument and relying on the fact > > > > that defaults to . If such a thing gets added, it > > > > should rather work like --root, not using at all, but --onto > > > > only. Maybe defaulting to HEAD for and making --onto > > > > optional, as it's reversed WRT what it does compared to the usual > > > > rebase. > > > > > > Sorry, I had trouble parsing the above. Could you suggest e.g. how the > > > help line should look? > > > > Current: > > git rebase [-i | --interactive] [options] [--onto ] > > [] > > git rebase [-i | --interactive] [options] --onto > > --root [] > > > > Add: > > git rebase [-i | --interactive] [options] --revisions [] > > > > (Thinking about it, I guess an explicit --onto makes no sense with the > > --revisions flag) > > I agree. > So this is different from what I implemented basically only in that > we should disallow combining --onto with --revisions. Right? It also drops , because that makes no sense with --revisions. So the only mandatory argument is the revision range. Björn