When staging files with git add
in patch mode (-p
) I sometimes find a mistake that I would like to correct, before keeping on with adding further changes.
Many possible options are prompted: confy
rm, plun
k, s
plit, e
dit, etc..
But I don't see any way to re-read the file and refresh the diff so I can see new updated changes, that I might have carried on in the meanwhile.
Usually I need to q
uit git-add, and re-run it (eventually having to re-skip all eventual chunks, in order to finally get again to the chunk I edited during the previous git add -p
).
Is there any (native, or artificial) way for making the process more convenient and just refresh the diff?