sindrets / diffview.nvim

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

[feature]: Support `--walk-reflogs` flag option in file-history #353

Closed thenbe closed 1 year ago

thenbe commented 1 year ago

Hi. Is there a way to get the stash, where the output would be similar to:

git stash list
git log -g stash
lazygit stash

I would've thought the following would work similar to git log -g stash, but the -g, --walk-reflogs flag is not supported at the moment:

DiffviewFileHistory -g --range=stash

As a workaround, I found this to work but it's missing the stash index (stash@{2}):

DiffviewFileHistory --reflog --merges --grep='^WIP|^On'
sindrets commented 1 year ago

We can add support for --walk-reflogs. I imagine that should be pretty straight forward. However, I don't have time to work on this at the moment. PR's are welcome.