From: Junio C Hamano Date: Mon, 19 Mar 2007 04:14:44 GMT Subject: Re: git push to a non-bare repository Message-ID: <7vejnlna2z.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070319034755.GH20658@spearce.org> "Shawn O. Pearce" 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?