Re: touching a file causes it to be listed using git diff-files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-Peff
--
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]