AbanteAI / mentat

Mentat - The AI Coding Assistant
https://mentat.ai
Apache License 2.0
2.42k stars 226 forks source link

Diff Context never null #531

Closed jakethekoenig closed 4 months ago

jakethekoenig commented 4 months ago

When run in a non git directory the diff context was set to null which made interacting with it complex. Now the diff context is responsible for determining it is not in a git context and returning sensible empty/none types when called.

Pull Request Checklist

jakethekoenig commented 4 months ago

I couldn't add the bot to this repo but you can see its review here It actually tried to comment on a line that wasn't changed so not all the model comments are displayed.