lewis6991 / gitsigns.nvim

Git integration for buffers
MIT License
5.22k stars 191 forks source link

Allow File history walking #905

Closed DMunkei closed 1 year ago

DMunkei commented 1 year ago

Sometimes I want to go through the history of a specific file to see if there are any specific changes to a file. So I end up using the command Gitsigns diffthis @~1. This however shows me the comparison with the last commit. This makes it comparing differences with older commits a hassle, first having to find the commit sha and then passing it to Gitsigns diffthis @..commitsha

I would like to somehow merge the feature from fugitive 0Gclog which shows the current file history of the file. And display it how diffthis does. That means, the bottom half of the buffer would show the entries inside of the quicklist, selecting/walking one of these commits in would then compare that commit hash with the current version of the file in the buffer.

image

Here's an example of how it could look like.

lewis6991 commented 1 year ago

Sorry not accepting complicated feature requests.

I may or not implement something like this if I decide to.

eliasdarruda commented 11 months ago

@DMunkei have you managed to solve this somehow?