Closed ptn closed 4 months ago
Pressing "u" to unstage selected lines also does not work:
git apply --reverse --cached:error: patch failed:
filename:30 error:
filename: patch does not apply
An error occurred.
Press ENTER or type command to continue
Should be fixed here: https://github.com/NeogitOrg/neogit/pull/1411 - sorry about that
Hi @CKolkey , it is still not working for me. When I select a hunk, pressing x
or X
does nothing. I am using 2b74a777b963dfdeeabfabf84d5ba611666adab4
commit with the default configuration.
I use NVIM v0.10.0
Hi @CKolkey , it is still not working for me. When I select a hunk, pressing
x
orX
does nothing. I am using2b74a777b963dfdeeabfabf84d5ba611666adab4
commit with the default configuration.I use NVIM v0.10.0
This issue is about discarding by line - if you're having an issue with an entire hunk, open a new issue :)
Actually, I am facing the same problem that is mentioned in this issue.
When I select a specific line of changes and if I press x
or X
, I don't see any popup.
Demo:
https://github.com/user-attachments/assets/5c52b7ee-84df-4840-874a-70d597fcbe8b
Expected:
Description
In the status buffer, I cannot select specific lines in visual mode then press
x
to discard only those changes (as opposed to entire hunks or files). In previous versions, I would get a popup asking to confirm the discard, and then the discard would happen. That's not the case anymore.This is hard to bisect because I encountered other bugs while doing so that made it impossible to trigger this behavior, but I can tell you that this was definitely working on d6b80dc9. On the commit immediately after that one (93773498), opening the status buffer prints debug information and I cannot use Tab to toggle file diffs.
Neovim version
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713773202
Operating system and version
macOS 13.4.1
Steps to reproduce
Expected behavior
Popup asks for confirmation, then lines are discarded.
Actual behavior
Neovim hangs, I actually need to press Ctrl-C to get it back. Doing that gives me this notification:
Minimal config