NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.71k stars 221 forks source link

Add support for add --patch #1284

Closed clobrano closed 2 months ago

clobrano commented 2 months ago

Is your feature request related to a problem? Please describe. The commit view only allows to add an entire hunk

Describe the solution you'd like Very often is useful to only add part of the hunk, via git add --patch

Describe alternatives you've considered There is no specific alternative

Additional context This is one of the most useful features implemented in fugitive

CKolkey commented 2 months ago

You can partially stage a hunk by using visual-line mode V to select the region to stage. Works with unstaging and discarding too.

clobrano commented 2 months ago

My bad, I didn't try the uppercase V