sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.57k stars 101 forks source link

fix(git): fix data access if nil #463

Closed lucobellic closed 1 month ago

lucobellic commented 4 months ago

I had an error while using DiffViewFileHistory with nvim nightly v0.10.0-dev-2361+ga376d979b

The command now works as expected.

sindrets commented 1 month ago

Thanks for the PR!

I'm missing a proper bug report for the issue described in this PR. I'm hesitant to consider including this change as it's not really a fix. It's adding special handling for unexpected behavior. Something that is generally a bad idea. This is merely pushing the root of the problem under a rug.

I'm gonna close this PR at least until I see a bug report.