I\'ve had a look at all similar questions. However, I\'ve double checked and something strange is definitely happening.
On one server (Solaris with Git 1.8.1) I clon
I added the file to the index:
git add file_name
and then ran:
git diff --cached file_name
You can see the description of git diff here.
If you need to undo your git add, then please see here: How to undo 'git add' before commit?