di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

[Bug]: `git commit` hook does not use `.opencommitignore` #345

Open rusmux opened 6 months ago

rusmux commented 6 months ago

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

di-sukharev commented 3 months ago

@rusmux hello, thank you for opening the issue! Do you want to contribute and introduce a PR here?