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

Re: git rebase -i

From: Jay Soffian <hidden>
Date: 2016-06-15 22:46:14

On Thu, Feb 19, 2009 at 7:11 PM, Junio C Hamano [off-list ref] wrote:
quoted
$ 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?
I didn't mean to suggest that -10 and HEAD~10 are the same thing.

I would expect -10 to act the same when given to rebase as it does
when given to format-patch. In both cases, you are asking the command
for a set of commits.

But as I said, I don't exactly know what -10 means to format-patch if
there are merge commits because I've never tried to use it in such a
context.

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help