Re: [RFC] Renaming environment variables.
- From
Petr Baudis <pasky@ucw.cz>
- Date
- May 10, 2005, 00:13 UTC
- Message-ID
- <20050510001351.GH15712@pasky.ji.cz>
- In-Reply-To
- <7v7ji8vt5c.fsf@assigned-by-dhcp.cox.net>
Dear diary, on Tue, May 10, 2005 at 02:09:19AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...
Show 14 quoted lines
> If you mean the parent directory of ${SHA1_FILE_DIRECTORY}, and
> your only gripe is about git-init-db creating ".git" in the
> current working directory regardless of SHA1_FILE_DIRECTORY, I
> would agree that what git-init-db does is broken. Not that I
> have a suggested "right behaviour" for it, though.
>
> However if you also mean by ".git" the directory refs/heads and
> friends hang underneath, then I have to disagree. That does not
> belong to core GIT, which always expects to run from the top
> level directory that has such directory directly under it, and
> at the same time corresponds to the tree structure the dircache
> describes. There is no need for the environment variable you
> suggest, since it always is the ".git" subdirectory of such a
> directory.I think it would be nice to have something like GIT_BASEDIR, which would default to .git, and the objects directory would then default to $GIT_BASEDIR/objects and the index file would default to $GIT_BASEDIR/index.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor