From: Junio C Hamano <hidden> Date: 2016-06-15 22:43:00
"Shawn O. Pearce" [off-list ref] writes:
git-diff $old $new | git-apply --index ?
If the patch does not apply, nothing gets updated. If it does apply,
the index is also updated and stat data updated.
And if you are only checking then perhaps instead of --index
use --check, so that the actual updates are deferred?