So let's say I've already run git add -p and I've selected the hunks I'd like to add to the file, and the hunks I would not like to add to the file. How can I see the resulting file in full based on what is about to be committed without committing it?
I tried using git diff --staged
as linked above but it only shows me the changes staged for commit, and not the full resulting file that will be committed to my local repository. Or should I just not worry about that, commit anyway and then undo the last commit?