Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eternity74 opened this issue May 20, 2024 · 0 comments
Open

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

eternity74 opened this issue May 20, 2024 · 0 comments

Comments

@eternity74
Copy link

eternity74 commented May 20, 2024

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.

eternity74 added a commit to eternity74/diffview.nvim that referenced this issue May 20, 2024
This patch allows to set gerrit style file sort (give higher priority to
c/cpp header files) by setting gerrit_style_filesort = true
Default value is false.
eternity74 added a commit to eternity74/diffview.nvim that referenced this issue May 20, 2024
This patch allows to set gerrit style file sort (give higher priority to
c/cpp header files) by setting gerrit_style_filesort = true
Default value is false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant