At 12:26 AM -0500 1/14/10, Jeff King wrote: >On Thu, Jan 14, 2010 at 12:01:46AM -0500, Stephen Bannasch wrote: > >> Do you know if there is a plumbing command that will stat all of the >> files without listing the files that actually do need updating? >> >> In the case where file1 has been only touched but file2 has been >> changed (and both are tracked) I'd like to stat both filesand then run >> diff-files as plumbing to see that only file2 has been changed in the >> working directory. > >Judging from the scripts in git itself, I think the recommended practice >is to simply "git update-index --refresh -q >/dev/null". > >> 'git diff' also stats the files but strangely 'git diff --quiet' doesn't ??? > >I can't reproduce that behavior here on the current "master". Old >versions of git used to not do the index refresh for "diff". What >version of git are you using? The most recent test was on: $ git --version git version 1.6.6 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html