From: Linus Torvalds Date: Tue, 13 Sep 2005 16:22:42 GMT Subject: Re: [PATCH] Define relative .git/objects/info/alternates semantics. Message-ID: In-Reply-To: <7vk6hl4fd9.fsf_-_@assigned-by-dhcp.cox.net> On Tue, 13 Sep 2005, Junio C Hamano wrote: > > This patch is request-for-comments. I have experimented it and > have a feeling that it may be more intuitive to make it relative > to $project.git/ directory, instead of $project.git/objects as > you originally suggested I don't think you can do that. I always felt that "alternates" should be per-project, but you're the one who argued that "alternates" is a per-object-directory thing. Which means that the _same_ "alternates" file can be shared with many different project.git/ directories, and thus it's not well-defined to make it relative to GIT_DIR. You can make it relative to "GIT_OBJECTS_DIR/.." of course, which in most cases is the same thing as "GIT_DIR". Linus