Skip to content

Conversation

@sandr01d
Copy link
Collaborator

@sandr01d sandr01d commented May 8, 2025

Check list

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation

Description

Adds a function for interactive git commit --squash && git rebase -i --autosquash. Because this feature is very similar to the existing _forgit_fixup function we already have, I moved most of the code from _forgit_fixup to a _forgit_edit_commit function, that can be used for both cases.
Closes #438

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation change

Test environment

  • Shell
    • bash
    • zsh
    • fish
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:

@sandr01d sandr01d self-assigned this May 8, 2025
@sandr01d sandr01d requested review from carlfriedrich, cjappl and wfxr May 8, 2025 15:08
Copy link
Owner

@wfxr wfxr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sandr01d sandr01d merged commit c2b0128 into wfxr:main May 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: function/alias for git commit --squash, similar to gfu

2 participants