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

Option to create a squash! commit #97

Open
jcorbin opened this issue Dec 7, 2023 · 1 comment
Open

Option to create a squash! commit #97

jcorbin opened this issue Dec 7, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@jcorbin
Copy link

jcorbin commented Dec 7, 2023

Sometimes you want to plan to edit the squashed commit message a bit, rather than just speed past it in the future rebase.

To that end, creating a squash! ... commit is super useful, otherwise you'll have to remember to edit the autosquash-prepared rebase plan and change a fixup to a squash.

Fwiw I have a small git-fit wrapper I've been using for years, which can also be invoked as git-sit to quickly bang out such commits; it was only on reading your README that I even learned that git commit --fixup and git commit --squash are a thing.

Supposing in a similar vein, amend! mode could/should also be supported, altho I'm also learning about that mode right now as I read up on git commit --fixup=amend:...

@tummychow
Copy link
Owner

seems reasonable. choosing which commit type to use on a per-commit basis is probably too difficult, but setting it for an entire git-absorb invocation (as a flag or git config) is a pr i'd accept

@tummychow tummychow added the good first issue Good for newcomers label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants