|
Subject: git-diff on touched files: bug or feature? Newsgroups: gmane.comp.version-control.git Date: 2007-08-01 16:17:13 GMT (1 year, 48 weeks, 1 day, 16 hours and 39 minutes ago)
Hi,
When a file is "touched" (ie. stat information not matching the index,
but the content still matching), git-status doesn't report the file as
modified (as expected), but git-diff does (with an empty diff):
$ git st
# On branch master
nothing to commit (working directory clean)
$ ls
bar
$ touch bar
$ git diff
diff --git a/bar b/bar <--- here ---<
$ git status
# On branch master
nothing to commit (working directory clean)
$ git diff <--- status updated
the stat in the index.
Is this intended, or just that the code that reconciles the file and
the index has been written for status, but not used in diff?
Thanks,
--
Matthieu
|
|
|