vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Add a smart "Commit as fixup" command palette option

Open TheYarin opened this issue 4 years ago • 1 comments

Wouldn't it be great if you could just stage some CR fixes, open the command palette and type "fixup", and you'll be prompted to specify the commit to fixup? And even better, if all the changes staged are changes to the same commit (that is, before those changes, the git blame for all the changed lines points to the same commit), that commit could be suggested as the target for the fixup?

This will make fixups much easier to use, which will help in keeping your repos clean :D

TheYarin avatar Feb 07 '22 12:02 TheYarin

Even better, add as a context menu item when clicking on a commit in the graph view or commits view, i.e. you right click on a particular commit and choose an option called "Fixup..." or something like that

MetRonnie avatar Jul 23 '24 09:07 MetRonnie

That might require a warning about changing that commit's hash and all the hashes of the commits after it.

CTimmerman avatar Jun 19 '25 07:06 CTimmerman