Thread (20 messages) flat view 20 messages, 11 authors, 2016-06-15

Re: git rebase -i

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:14

Jay Soffian [off-list ref] writes:
On Thu, Feb 19, 2009 at 4:21 AM, John Tapsell [off-list ref] wrote:
quoted
Hi,

 I often do   'git rebase -i HEAD~10'  to rebase.  Since afaics it
doesn't matter if you go back 'too far' I just always use HEAD~10 even
if it's just for the last or so commit.

 Would there be any objections to making  'git rebase -i' default to
HEAD~10  or maybe 16 or 20.  Having sensible defaults for commands
helps a bit with making it easier to use.
I think the following might be reasonable to support:

$ git rebase -i -10
$ git rebase -i -n -10
The syntax would certainly imply a different semantics from giving
HEAD~10.  How would you compute the set of commits to rebase sanely when
you have merges after your 10th direct parent commit?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help