Remove the "--cached" flag from clang formatting

The "--cached" flag prevents developers from formatting local work in
progress, which is annoying. I always remove it locally, and it has
confused external developers as well. It is more straightforward and
intuitive to just format every modified file when running the script.

Bug: b/187094215
Change-Id: I8b48613bdbd70aeeeceb6dd03eda4bee0d0e6062
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/67930
Tested-by: Alexis Hétu <sugoi@google.com>
Presubmit-Ready: Alexis Hétu <sugoi@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Commit-Queue: Alexis Hétu <sugoi@google.com>
diff --git a/src/clang-format-all.sh b/src/clang-format-all.sh
index f68c60a8..9fb5a52 100755
--- a/src/clang-format-all.sh
+++ b/src/clang-format-all.sh
@@ -43,7 +43,7 @@
     done
 else
     BASEDIR=$(git rev-parse --show-toplevel)
-    FILES=$(git diff --cached --name-only --diff-filter=ACM | grep '\.cpp$\|\.hpp\|\.c$\|\.h$')
+    FILES=$(git diff --name-only --diff-filter=ACM | grep '\.cpp$\|\.hpp\|\.c$\|\.h$')
     for FILE in $FILES
     do
         ${CLANG_FORMAT} -i -style=file "$BASEDIR/$FILE"