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