opencommit
opencommit copied to clipboard
[Bug]: `git commit` hook does not use `.opencommitignore`
trafficstars
Opencommit Version
3.0.15
Node Version
v22.0.0
NPM Version
10.8.0
What OS are you seeing the problem on?
Mac
What happened?
I set pre-commit hook by oco hook set, created .opencommitignore file, made changes, committed by git commit and got commit message about ignored files. I after run oco commit and it worked correctly, ignoring the files I specified
Expected Behavior
git commit should use .opencommitignore file
Current Behavior
git commit does not use .opencommitignore file
Possible Solution
No response
Steps to Reproduce
Set hook, create .opencommitignore file, create ignored files, run git commit
Relevant log output
No response
@rusmux hello, thank you for opening the issue! Do you want to contribute and introduce a PR here?