Open brianjmurrell opened 5 years ago
Hi, for quite a while I used to rely on having $Env:EDITOR = 'code --wait'
(Powershell) - then at least I didn't have to leave Code to do an interactive rebase. I suspect EDITOR="code --wait"
would work on bsd/nix.
I note that a gui rebase editor is planned for v11. It has drag-n-drop.
A few related features I'd like to see, in the interactive rebase editor:
reword
(and maybe squash
) options, ahead-of-time editing of the commit message in the line in the rebase editor
When working on a feature or bugfix with git, I will commit early and often as I iterate towards the final solution. I rarely want to commit such an array of arbitrary commits. At minimum I will want to squash them. But often, there is debug prints and so forth that I might want to reorder and eventually get rid of. All of this happens on a private branch where rebasing and force pushing is acceptable because nobody else should be working on the same branch.
It would be nice if gitlens automated much of this history rewriting. The sorts of operations I think would be useful are:
So, indeed all of those above except the last are different forms of
git rebase -i
. Many will cause conflicts, but those can be handled the way VS Code already handles conflicts when doing agit rebase -i
from the terminal window.The above operations are probably what I jump out of VS Code to a terminal most often for.