git add --interactive "Tu trozo editado no se aplica"

Estoy tratando de usargit add --interactive para agregar selectivamente algunos cambios a mi índice, pero recibo continuamente el mensaje "Su trozo editado no se aplica. Editar de nuevo ...". Recibo este mensaje incluso si elijo la opción e, e inmediatamente guardo / cierro mi editor. En otras palabras, sin editar el trozo, el parche no se aplica.

Aquí está el ejemplo exacto que estoy usando (estoy tratando de armar una pequeña demostración):

Archivo original:

first change
second change off branch
third change off branch
second change
third change
fourth change

Archivo nuevo:

Change supporting feature 1
first change
second change off branch
third change off branch
second change
third change
fourth change
bug fix 1
change supporting feature 1

Estoy tratando de mostrar cómo usargit add --interactive para agregar solo la línea "corrección de errores 1" al índice. Al ejecutar el complemento interactivo en el archivo, elijo el modo parche. Me presenta con

diff --git a/newfile b/newfile
index 6d501a3..8b81ae9 100644
--- a/newfile
+++ b/newfile
@@ -1,6 +1,9 @@
+Change supporting feature 1
 first change
 second change off branch
 third change off branch
 second change
 third change
 fourth change
+bug fix 1
+change supporting feature 1

Respondo con división, seguido de "no" para aplicar el primer trozo. El segundo trozo, trato de editar. Originalmente intenté eliminar el resultado final, eso no funcionó. Dejar el trozo solo por completo tampoco funciona, y no puedo entender por qué.

Respuestas a la pregunta(11)

Su respuesta a la pregunta