From: Junio C Hamano Date: Fri, 17 Feb 2012 19:26:38 GMT Subject: Re: How to use git attributes to configure server-side checks? Message-ID: <7vd39dtg5t.fsf@alter.siamese.dyndns.org> In-Reply-To: <4F3E9F86.3070802@alum.mit.edu> Michael Haggerty 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.