diff-files inconsistency with touched files
- From
- James Spencer <jss43@cam.ac.uk>
- Date
- Sep 2, 2009, 17:27 UTC
- Message-ID
- <4A9EAAF3.3000002@cam.ac.uk>
Hi,
I am puzzled by the following behaviour:
$ git --version git version 1.6.4.2 $ git diff-files $ touch test $ git diff-files :100644 100644 9daeafb9864cf43055ae93beb0afd6c7d144bfa4 0000000000000000000000000000000000000000 M test $ git diff $ git diff-files $
I don't understand why git diff-files reports a file is changed when that file is touched nor why running git diff changes this to (what I think is) the correct behaviour.
Thanks in advance,
--James