Add --cached option to git-clang-format which behaves analogously to the
use of --cached for other git subcommands, by causing the operation to
work against the index state rather than the working directory state.
This can be particularly useful for hook scripts which need to check or
change the formatting of the index state before commit.
Patch by Kevin Locke.