git check staged changes

C++
git diff --staged # or you can use --cached (they are synoyms, see the source)git diff --cached
Source

Also in C++: