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

[Feature]: Exclude certain file types from the git diff command #181

Open evmckinney9 opened 1 year ago

evmckinney9 commented 1 year ago

Description

I develop in python and of course the use of jupyter notebooks destroys nicely formatted git diffs. Currently, I use this tool by committing all my .py files with opencommit, then committing all my .ipynb files manually as a separate commit. Other file types, like images, should be excluded for similar reasons.

Suggested Solution

I would pass the contents of the git diff over all files except those from an excluded list. Optionally, you could include in the prompt the filenames of those that were changed but not included in the diff.

Alternatives

No response

Additional Context

No response

github-actions[bot] commented 1 year ago

Stale issue message