built-in rebase: use the correct reflog when switching branches