How to refresh a chunk's diff, during `git add -p`

306 Views Asked by At

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: confyrm, plunk, split, edit, 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 quit 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?

0

There are 0 best solutions below