'git commit --short' touches .git/index ('--short' implies '--dry-run').
Is there any equivalent command that does not touch .git/index?
I'm using 'git commit --short' in a script to check if the repository needs
attention. At present, it touches .git/index, which causes unnecessary activity
in another script running rsync.
thanks,
Daniel