vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Commit context menu items to create fixup, squash and another for autosquash

Open TMaYaD opened this issue 4 years ago • 5 comments

Describe the feature that you'd like I want to be able to right click on a commit and select fixup or squash to run the equivalent of running git commit --<fixup/squash> <commit hash>.

I also want a context menu to run the equivalent of git rebase -i --autosquash <commit hash>.

Additional context (optional) It might be easier, if possible, to allow creating custom context commands.

TMaYaD avatar Nov 08 '20 21:11 TMaYaD

Hi @TMaYaD,

Thanks for raising this feature request! This collection of related Git commands would definitely be nice to have in Git Graph.

Based on past feature requests related to rebase operations, a very small portion of users have expressed interest in them (leading me to infer that the proportion of users performing rebases is surprisingly relatively small). This has meant that these existing feature requests have been prioritised lower than other feature requests that are used by a larger proportion of users. If you're another user who would like this feature request, please like the requestors first comment in this thread so I can gauge interest in this feature request.


Allowing users to create custom context menu actions, that run a user specified Git command with some substitution variables for the target the user right-clicked on (e.g. commit hash, ref name etc.), is definitely possible. The limitation though is that it would be a significant amount of work (likely infeasible) if these custom context menu actions could trigger custom dialogs (so the user can modify arguments of the Git command), before running the Git command. This limitation might not be a problem though, as the user can configure the custom context menu actions to provide their preferred arguments by default. I'll definitely look into implementing this, as it might be a great solution for some of the lesser used Git command / argument combinations.

mhutchie avatar Nov 08 '20 23:11 mhutchie

I think GitKraken does this really well. The ability to right click on commits and squash the ones you want is super helpful

jakeleventhal avatar Dec 11 '20 19:12 jakeleventhal

I think GitKraken does this really well. The ability to right click on commits and squash the ones you want is super helpful

No, I don't believe GitKraken currently offers this feature. It seem that they are actively working on implementing it in this PR

This is really a useful feature. It would be great if u can have this feature too.

ShuXiao2023 avatar Sep 29 '23 06:09 ShuXiao2023

Maybe the autosquash one should be a separate issue?

I personally would use the fixup context menu option all the time, yet I haven't used the autosquash option for years, since I enabled my git's autosquash mode by default.

Ghostbird avatar Dec 19 '23 10:12 Ghostbird

The "fixup" part would be fantastic! Pycharm has it, and I used it quite a while when using pycharm :-)

Jakobhenningjensen avatar Aug 16 '24 12:08 Jakobhenningjensen