+1

Graph: drag and drop to rebase not checked out branches

benblo 1 year ago updated 1 year ago 2

If I drag and drop the current branch to another one, I get a context menu offering to either reset or rebase.

If I drag and drop a non-current branch to another one though, I only get the reset option; it'd be nice to be able to rebase without having to checkout first.

I understand git rebase may still auto-checkout behind the scene, but even if there is no workaround, it could still be interesting to do it all in one go and come back to the initial context at the end.

I am assuming a clean repo, without local changes, which might complicate things too much.
At least in that case, I tend to ignore, if a branch is checked out or not.
Basically, if not, I do the stupid work for the computer not vice versa as it should be :-)
It's the same with cherry picks, why not drop a commit onto a commit that is not checked out for a cherry pick?

+1

Yes exactly. I love SmartGit's autostash feature, in most cases it just works, and if there's any issue the transaction is aborted and everything's safe.