Remember sort order of the file table in git diff view - #9430
Conversation
|
I had a quick look and initially though that it did not work. I opened a testrun with this, changed sorting, closed IDE and reopened. The state was not persistet. Looking at the implementation i then saw that sorting is stored when the diff is closed. This seems counter intuitive. Consider this event order:
I would expect that the last setting survives, but in this case it is the first one.
Can you point where that can be found? I was not able to find it. |
|
@matthiasblaesing Thanks for your review. I did not realize that this table is used for general git diffs. I wanted mainly sorted files in Git Commit Diff view. Where you can have only one instance of the table. Let me check it and fix it.
|
|
@matthiasblaesing Updated. Now it stores on click on the table header, and there is a change in sort order. Storing on a close diff is removed. |
3bc7dfe to
7229123
Compare
|
Fixed author and commiter name |
matthiasblaesing
left a comment
There was a problem hiding this comment.
Makes sense to me. Thank you!

I want to always sort files by path in Git Diff view. This stores the sort configuration of the table in the Git Diff view. It is inspired by the same implementation in the subversion module.
Closes #7742