'git commit --short' without touching index?
- From
- Daniel <friedan@muon.rutgers.edu>
- Date
- Jul 3, 2010, 08:30 UTC
- Message-ID
- <loom.20100703T102242-536@post.gmane.org>
'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