How can I find out the number of modified files in the index? That is to say, files that show as "modified" when running git status
.
I know lots of visual git tools that do this, as well as shell add-ons that show the count next to the prompt, but I just don't see how to do it on the command line in a reasonable way.