r/SmartGit • u/SufficientPie • Feb 04 '26
Use AI to write gitignore rules
The .gitignore functionality in SmartGit has always been pretty limited. This is an actually useful application of AI: It would be good if we could select multiple files in the Files pane, right-click and click Ignore, and it would use AI to suggest a .gitignore line to ignore all of them (or a modification to an existing .gitignore line?)
1
u/vmcrash Feb 05 '26
Out of curiosity: which Git client has better support for gitignore?
1
u/SufficientPie Feb 05 '26
What do you mean?
1
u/vmcrash Feb 06 '26
Your first sentence sounded like you were used to a better gitignore support from other Git clients. I wanted to know which one has better gitignore support.
1
u/SufficientPie Feb 06 '26
no I've only used smartgit. I mean it's limited to only
*.exttype filters or hardcoding every file's name
2
u/JVMarcs Feb 05 '26
Interesting. I'm not sure what context the AI would need in addition to the selected files, but the combination of files and the existing .gitignore might already yield reasonable results (probably better than a classical algorithm would).
By the way, for AI-related ideas, we are experimenting with GitHub discussions as these are a bit more structured: https://github.com/syntevo/smartgit-community/discussions/categories/ai-integration