I\'m trying to figure out how to easily count the files in my uncommitted index.
I\'ve tried:
git status | grep \'#\' | wc -l
but there
Maybe it was not available 9 years ago, but as of 2019, ls-files is much faster than diff --stat:
ls-files
diff --stat
git ls-files --cached | wc -l