git-check-files - Verify a list of files are up-to-date
git-check-files <file>…
Check that a list of files are up-to-date between the filesystem and the cache. Used to verify a patch target before doing a patch.
Files that do not exist on the filesystem are considered up-to-date (whether or not they are in the cache).
Emits an error message on failure:
<file> exists but is not in the cache
<file> on disk is not up-to-date with the cache
Exits with a status code indicating success if all files are up-to-date.
Written by Linus Torvalds <torvalds@osdl.org>
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
Part of the git(7) suite