Description
Gitbun analyzes staged changes and generates context-aware Conventional Commits using local LLMs or remote APIs. However, staging large, auto-generated files (such as package-lock.json, minified assets, or compiled binaries) passes excessive and irrelevant tokens to the language model. This can significantly slow down the local Ollama generation process, consume unnecessary remote API tokens, and degrade the quality of the generated commit message.
Proposed Solution
- Introduce support for a
.gitbunignore file at the repository root.
- Update the TypeScript CLI core to parse this ignore file (potentially utilizing a library like
ignore).
- Filter the
git diff output to strip out ignored files before the string is passed to the AI prompt or the fallback rule-based engine.
- Provide default exclusions out-of-the-box (e.g., lockfiles, build outputs) to ensure the AI only ever analyzes meaningful source code changes.
GSSoC '26 Request
Hi maintainers! 👋 I am actively participating in GirlScript Summer of Code 2026 and would love to build this filtering logic.
Could you please:
- Assign this issue to me.
- Add the
gssoc26 and enhancement labels to this thread?
Thank you! I am ready with the solution and would love to contribute towards this project.
Description
Gitbun analyzes staged changes and generates context-aware Conventional Commits using local LLMs or remote APIs. However, staging large, auto-generated files (such as
package-lock.json, minified assets, or compiled binaries) passes excessive and irrelevant tokens to the language model. This can significantly slow down the local Ollama generation process, consume unnecessary remote API tokens, and degrade the quality of the generated commit message.Proposed Solution
.gitbunignorefile at the repository root.ignore).git diffoutput to strip out ignored files before the string is passed to the AI prompt or the fallback rule-based engine.GSSoC '26 Request
Hi maintainers! 👋 I am actively participating in GirlScript Summer of Code 2026 and would love to build this filtering logic.
Could you please:
gssoc26andenhancementlabels to this thread?Thank you! I am ready with the solution and would love to contribute towards this project.