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

[Feature request] Have an option to use gerrit style file sort. #496

Open eternity74 opened 1 month ago

eternity74 commented 1 month ago

Hi, Thanks for providing great plugin for daily use.

I sometimes compare local commit with gerrit changes by using diffview.nvim plugin. For this use-case, there is mismatch on file sort compare to gerrit. Gerrit seems to give higher priority to cppheader files so header file comes first and source file laster. (see https://github.com/GerritCodeReview/gerrit/blob/master/java/com/google/gerrit/common/data/FilenameComparator.java#L60)

I want to have the same behavior with option like gerrit_style_filesort = true.