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

Reverse the order of commits when running `:DiffviewFileHistory --range=origin..HEAD` ? #470

Closed fredrikaverpil closed 3 months ago

fredrikaverpil commented 4 months ago

To avoid confusion, I'd like to have :DiffviewFileHistory --range=origin/main..HEAD show the commits in the same ascending order as GitHub shows them when clicking "Commits" in a PR (oldest on top, most recent at the bottom).

If I want to review a PR on a per-commit basis, in chronological order, I have to do this via Shift+Tab to walk through commits in an unintuitive manner.

Is it somehow possible to reverse the order of the commits, or even better construct the :DiffviewFileHistory command so it applies ascending order from the get-go?

fredrikaverpil commented 3 months ago

Ah, I read the docs and there's the --reverse option that does exactly this.