I have a pre-commit hook in git that writes a 'last changed' date to the file headers. When this hook fires, all the files it changes appear in the local history, but the diff reports that the file contents are identical. The only way I've found to remove the files is to revert them, which makes no changes to the files themselves, but does clear them from local history. Git diff shows no differences either before or after the local history reversion.
Can anyone tell me if I'm missing something or is this is a bug?