I find myself performing similar actions to you: using git add -p to stage 
hunks, sometimes editing the staged patch; and keeping mental notes of things I 
wanted to revert, sometimes changing them in the editor in another window, and 
sometimes reverting them after the add session with git checkout -p).

The interactive staging-and-editing tool could be improved, but I'm not sure 
that tool should be called 'git add -p'. git add doesn't touch the working tree 
— at least I hope not, because I wouldn't expect it.

But I eagerly support more discussion. If someone does want to add this feature 
to "git add -p" (or named differently), I'll add a request for another letter 
(perhaps '!')  to edit the hunk in the working tree.

Jonathon Mah

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to