Skip to content

Commit

Permalink
feat: ✨ support precommit during fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgrv committed Jan 3, 2025
1 parent 1043c1f commit a6c83de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gitutils/_fixup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if ! git isFixup; then
fi

#### START REBASE
git rebase -i --autosquash $sha~ --autostash --no-verify
git rebase -i --autosquash $sha~ --autostash --no-verify --exec '[ -f .git/hooks/pre-commit ] && (.git/hooks/pre-commit --name-only HEAD HEAD~1 && git commit --amend --no-edit --no-verify) || true'
else
echo -e "\e[32mExisting !fixup commit found. Continue rebasing...\e[0m"

Expand Down
2 changes: 1 addition & 1 deletion src/gitutils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Git Aliases",
"version": "3.0.2",
"version": "3.1.0",
"description": "A feature to add useful Git aliases to your shell.",
"customizations": {
"vscode": {
Expand Down

0 comments on commit a6c83de

Please sign in to comment.