Nguyen Thai Ngoc Duy [off-list ref] writes:
I assume you do git-commit with no index modification at all. The
index refresh part dated back in 2888605 (builtin-commit: fix
partial-commit support - 2007-11-18). Commit message does not tell why
index refresh is needed (for summary stat maybe?). If so, then we can
skip refreshing if -q is given.
Most likely to give a clean index to post-commit hook.