I have staged parts of a file in git like so
git add --patch ./file
I would like to output the contents of the staged file to stdout.
Note that the staged file and the file in the working directory are different since I only staged parts of the file.