I observed an unexpected behavior in an interactive rebase today. It was always my understanding that if I run an interactive rebase and don't change anything in the editor, it should not have any effect, but apparently that's not so (at least on a specific repo im working with which sadly I cannot share).
Lets say we have
A -> B -> C -> D <--HEAD
and I run git rebase -i A
I expect to see
pick B
pick C
pick D
but in the repo I'm working on I got
pick C
pick B
pick D
instead. If I close the editor and git does its thing, the result is:
A -> C' -> B' -> D' <--HEAD
Does anybody know what circumstances might lead to a behavior like that?