I am trying to edit a certain hunk with a git: I use git add -p
, then press s
and then e
. I make no changes (initially I tried to), save the file and it says that hunk does not apply.
Easy example:
Create a file with the following content:
aaa bbb ccc
Commit it
Add changes (three lines on the top and one line before the last line), so the file looks like
111 222 333 aaa bbb 444 ccc
Run
git add -p
Press
s
to splitPress
e
to edit. Edit nothing (really nothing)Save file with no changes
It does not apply.
???
Any ideas..?