Re: [PATCH] rebase --fix: interactive fixup mode
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Jan 9, 2012, 01:44 UTC
- Message-ID
- <CACsJy8CKK0EAy79Fahi64bUw2kfr=eunegbeA7oX_XaXEBFr2g@mail.gmail.com>
- In-Reply-To
- <20120108220127.GA4050@burratino>
2012/1/9 Jonathan Nieder <jrnieder@gmail.com>:
Show 11 quoted lines
> Funny. :) I wonder if this is possible to generalize, to something like
>
> git rebase -i foo^{last-merge}
>
> or even something like
>
> git rebase -i foo^{first:--merges}
>
> (where "<commit>^{first:<rev-list args>}" would mean something like
> "the first commit listed by "git rev-list <rev-list args> <commit>").
> What do you think?Is something like this over-generalized?
http://kerneltrap.org/mailarchive/git/2010/12/24/47502
A good thing I see from having a specific option for "-i HEAD~n" is that it's potentially shorter to type. For someone who does rebase a lot and has CapsLock turned to Ctrl, it helps. Maybe "rebase -I" == "rebase -i HEAD^{last-merge}" (or "rebase -i <the-revision-used-last-time>") and "rebase -I <n>" == "rebase -i HEAD~<n>"?
-- Duy