From: Junio C Hamano Date: Tue, 10 May 2005 02:16:03 GMT Subject: Re: [RFC] Renaming environment variables. Message-ID: <7vy8anu8po.fsf@assigned-by-dhcp.cox.net> In-Reply-To: >>>>> "DB" == Daniel Barkalow writes: >>>>> "PB" == Petr Baudis writes: DB> While we're at it, it would be useful to have one for what is normally DB> ".git", rather than just ".git/objects". PB> I think it would be nice to have something like GIT_BASEDIR, which would PB> default to .git, and the objects directory would then default to PB> $GIT_BASEDIR/objects and the index file would default to PB> $GIT_BASEDIR/index. Although what I pushed out at git-jc repository does not have this, it does not mean I forgot this issue you two have raised, nor would want to veto it or anything like that. Just that, unlike the one that I already committed, the proposed change would touch rather many lines and I have not managed to determine the extent of the damage yet. I am willing to make (or take) a separate patch to do this one, since I agree with Petr's "currently we happen to have just two but it would still be better to be able to set just one than having to change both of them in sync." argument. I am currently waiting for community consensus, including the final name of the variable. I think the current consensus is that this is a good idea, the semantics for it is to name what corresponds to the current "$(pwd)/.git" directory, use it to build the default for GIT_INDEX_FILE and SHA1_FILE_DIRECTORY, and this directory does _not_ have anything to do with my previous "the directory that corresponds to the root of the tree structure GIT_INDEX_FILE describes". I agree to all of the above.