Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TMaYaD opened this issue Nov 8, 2020 · 4 comments · May be fixed by #573
Open

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

TMaYaD opened this issue Nov 8, 2020 · 4 comments · May be fixed by #573
Assignees
Labels
feature request Feature request nice to have A feature request that is nice to have (lower priority)

Comments

@TMaYaD
Copy link

TMaYaD commented Nov 8, 2020

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 TMaYaD added the feature request Feature request label Nov 8, 2020
@mhutchie
Copy link
Owner

mhutchie commented Nov 8, 2020

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 mhutchie added the nice to have A feature request that is nice to have (lower priority) label Nov 8, 2020
@jakeleventhal
Copy link

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

@bkmeneguello bkmeneguello linked a pull request Oct 3, 2021 that will close this issue
@ShuXiao2023
Copy link

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.

@Ghostbird
Copy link

Ghostbird commented Dec 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request nice to have A feature request that is nice to have (lower priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants