Re: "GIT_INDEX_FILE" environment variable
- From
Petr Baudis <pasky@ucw.cz>
- Date
- Apr 22, 2005, 10:35 UTC
- 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 <junkio@cox.net> told me that...
> >>>>> "LT" == Linus Torvalds <torvalds@osdl.org> 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