Closed ceuk closed 4 months ago
Will take a look, stage and unstage logic is implemented by me because libgit2 doesn't support apply a hunk yet. Literally, this is my bug :D
@ceuk, Please enter visual mode (Pressing v) for lines stage/unstage. Hope this solve your problem
@SuperBo that is so cool. What a great idea! Works a treat
@ceuk, I work my ass off for this line stage/unstage feature because Libgit2 doesn't support it natively :)).
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.9.5
Operating system/version
Arch Linux
Describe the bug
I think this might be more of an issue with the upstream libgit2 library maybe but hunk staging doesn't work as I'd expect. e.g. in Lazygit I'm able to stage and unstage individual lines even. Perhaps this isn't representative of a canonical "hunk" in a git sense, but it's a bit restrictive e.g. if I have some staged changes and make some other changes elsewhere in the file, then stage said changes, they become part of the same hunk when it's not clear why
Steps To Reproduce
(un)staging granularity
Hunks unexpectedly merged
Expected Behavior
See above