How to correctly edit hunks when recording?

Giving the following when recording:

1. Replacement in ".ignore":4 4.32 "UTF-8"
B:BD 3.5 -> 2.0:2/2
  up 3.5, new 1:20, down
- l
+ dddaaaaaaaa
+ tttttl

I can delete any of the added lines without changing the metadata of the hunk, and it does exactly what I want: it only records the remaining ones, which to me works better than having a staging area. However, when I deleted the deleted line, the change was recorded anyway, as if I hadn’t touched the hunk at all.

I guess I need to change the metadata somehow to be able to exclude deletions, or any complex changed, from being recorder. Is this syntax explained somewhere?

1 Like