rebase --onto might "loose" commits

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <gitster@...>, <Johannes.Schindelin@...>
Cc: <git@...>
Date: Tuesday, February 19, 2008 - 3:23 am

Hi,

when there's nothing to rebase (ie. upstream..branch is empty), rebase
fails to find any commits to rebase and correctly says "Nothing to do",
but when --onto is given, we already did a "reset --hard" to newbase, so
it already _did_ something.

As rebase also shows a "fatal: Not a range", during the operation, I
assume that this is an actual bug and not just a plain user error.

A test script is attached.

Thank,
Bj
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
rebase --onto might "loose" commits, Björn, (Tue Feb 19, 3:23 am)
Re: rebase --onto might "loose" commits, Johannes Schindelin, (Tue Feb 19, 7:05 am)
Re: rebase --onto might "loose" commits, Björn, (Tue Feb 19, 8:52 am)
Re: rebase --onto might "loose" commits, Nicolas Pitre, (Tue Feb 19, 10:43 am)