All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Spencer <jss43@cam.ac.uk>
To: git@vger.kernel.org
Subject: diff-files inconsistency with touched files
Date: Wed, 02 Sep 2009 18:27:15 +0100	[thread overview]
Message-ID: <4A9EAAF3.3000002@cam.ac.uk> (raw)

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

             reply	other threads:[~2009-09-02 17:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02 17:27 James Spencer [this message]
2009-09-02 19:28 ` diff-files inconsistency with touched files Jeff King
2009-09-03 16:18   ` James Spencer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9EAAF3.3000002@cam.ac.uk \
    --to=jss43@cam.ac.uk \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.