3 ms·
Looking at the README of vim-gitgutter[1] (assuming that's the plugin you're referring to), it says the following: >> You cannot unstage a staged hunk. I'm no
by u801e 7y ago
Looking at the README of vim-gitgutter[1] (assuming that's the plugin you're referring to), it says the following:
>> You cannot unstage a staged hunk.
I'm not sure if that's a feature they plan to support, but something like this could easily be done by highlighting the hunk displayed when running git diff --cached in vim's linewise visual mode and filtering it through git apply -R --cached -.
[1] https://github.com/airblade/vim-gitgutter https://github.com/airblade/vim-gitgutter