Re: "p4 revert -a" equivalent in git?

From: Junio C Hamano <junkio@cox.net>
Date: 2005-12-24 11:23:09
Luben Tuikov <ltuikov@yahoo.com> writes:

> That is I want to git-update-index --refresh for all
> files whose inode may have changed but the actual file
> data has not.

That's what "git-update-index --refresh" does, unless I am
misreading what you say you want.

	$ git checkout master
        $ touch *.c
	$ git diff-index HEAD ;# tons of changes
        $ git update-index --refresh
	$ git diff-index HEAD ;# no changes


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Dec 24 11:23:45 2005

This archive was generated by hypermail 2.1.8 : 2005-12-24 11:23:52 EST