Skip to content

feat(cli): add --no-verify to run git without hooks - #10

Merged
mhvelplund merged 1 commit into
mainfrom
no-verify
Oct 25, 2026
Merged

mhvelplund merged 1 commit into
mainfrom
no-verify

Conversation

@mhvelplund

@mhvelplund mhvelplund commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

A global --no-verify flag passes core.hooksPath (pointing at a directory
that is never created) on the command line of every git command
git-stack runs, so pre-commit, commit-msg, pre-push and the other hooks
are skipped for that one invocation. No config is changed, so hooks
cannot be left disabled, even if git-stack crashes.

Pass it again on rebase --continue / modify --continue: a paused operation does not remember it.

Testing

  • New CLI tests: a failing pre-commit and pre-push hook are skipped with --no-verify and run again without it; .git/config is unchanged.
  • internal/git unit test for HooksPath.
  • mise run check passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HT5Zbe3D4H8mAHGZQxKhqm


Stack (managed by git stack)

A global --no-verify flag passes core.hooksPath (pointing at a directory
that is never created) on the command line of every git command
git-stack runs, so pre-commit, commit-msg, pre-push and the other hooks
are skipped for that one invocation. No config is changed, so hooks
cannot be left disabled, even if git-stack crashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HT5Zbe3D4H8mAHGZQxKhqm
@mhvelplund
mhvelplund marked this pull request as ready for review October 25, 2026 10:43
@mhvelplund
mhvelplund merged commit c02c194 into main Oct 25, 2026
2 checks passed
@mhvelplund
mhvelplund deleted the no-verify branch October 25, 2026 10:43
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.

1 participant