Skip to content

Reduce cases in which empty commit error is shown.#40

Merged
NelsonAPenn merged 5 commits into
mainfrom
feature/limit-empty-commit-check
Mar 6, 2026
Merged

Reduce cases in which empty commit error is shown.#40
NelsonAPenn merged 5 commits into
mainfrom
feature/limit-empty-commit-check

Conversation

@NelsonAPenn

Copy link
Copy Markdown
Owner

Resolves #16 (sufficiently)
The empty commit error is now returned if the diff was not empty before pre-commit ran, but empty afterwards. This reduces cases where commits which intentionally do not change files are rejected; i.e. when amending commit messages.

The empty commit error is now returned if the diff was not empty before
pre-commit ran, but empty afterwards. This reduces cases where
commits which intentionally do not change files are rejected; i.e. when
amending commit messages.
@NelsonAPenn NelsonAPenn merged commit 8eadedb into main Mar 6, 2026
1 check 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.

Amending a commit without any staged changes is rejected by yact

1 participant