sindrets / diffview.nvim

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

Feature Idea: Show Changes with git --stat #479

Open kevintraver opened 3 months ago

kevintraver commented 3 months ago

Currently in Diff View File History the changes show up like this:

A added-file-1.js 3, 0
A added-file-2.js 13, 0
M changed-file-1.js 9, 12
M changed-file-2.js 4, 4

It would be useful to have an option to show the changes similar to git log --stat

A added-file-1.js   |  3 +++
A added-file-2.js   | 13 +++++++++++++
M changed-file-1.js | 21 +++++++++------------
M changed-file-2.js |  8 ++++----
kevintraver commented 3 months ago

Showing the full stat also makes renames show up with more detail.

R deleted-file-1.js 0, 0

becomes:

R changed-file-1.js => deleted-file-1.js | 0