From: Petr Baudis Date: Fri, 22 Apr 2005 10:35:19 GMT Subject: Re: "GIT_INDEX_FILE" environment variable Message-ID: <20050422103519.GB14565@pasky.ji.cz> In-Reply-To: <7vzmvr72j6.fsf@assigned-by-dhcp.cox.net> Dear diary, on Fri, Apr 22, 2005 at 08:23:41AM CEST, I got a letter where Junio C Hamano told me that... > >>>>> "LT" == Linus Torvalds writes: > - Further admit that to support it without core layer help, > what Cogito layer needs to do involves quite a lot of "yuck" > factor. I actually thought that I would just walk to parent directories at the time of invocation, to find the .git directory, then save that to $gitdir and use that to always reference to it, setting also GIT_INDEX_FILE etc. I basically just postponed this until I have some kind of library or something, and do all this stuff in a single common init routine. I think it should be doable pretty well in Cogito alone, but of course I won't mind if someone does it in git core. ;-) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor