Re: How to use git attributes to configure server-side checks?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 17, 2012, 19:26 UTC
- Message-ID
- <7vd39dtg5t.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4F3E9F86.3070802@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> I was just alerted by Scott Chacon's blog [1] to the fact that one can > set GIT_INDEX_FILE to an arbitrary filename, thereby causing the index > to be read/written from that file instead of $GIT_DIR/index.
That's very old fashioned. For almost five years, the preferred way to say that has been "git read-tree --index-output=file" ;-)
But what you outlined should work.