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

Re: [PATCH 2/2] Re: rebase -i: explain how to discard all commits

From: Thomas Rast <hidden>
Date: 2016-06-15 22:50:26

Possibly related (same subject, not in this thread)

Nicolas Sebrecht wrote:
The 20/01/11, Jonathan Nieder wrote:
quoted
if you
have a single "noop" instruction, that means "I have discarded all the
commits, but please rebase anyway".
Ok, I think I get it now. What about adding

  Use "noop" with no other instruction to fallback to a non-interactive
  rebase. If other instructions are present, "noop" has no effect.

?
No, that's quite wrong.

The TODO list is the list of all commits that need to be rebased.  It
does not contain commits that (according to patch-id) are already
contained in the upstream (i.e., the base you are rebasing on).  If
the list is empty after filtering out such commits, rebase puts 'noop'
as the only command since "empty TODO" is already taken to mean
"abort"

If you then accept this 'noop' rebase, this effectively makes the
rebased branch the same as the base branch, sort of like resetting.

(I for one have never accepted such a rebase; if the TODO only
consists of noop, that means I made a mistake.)

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help