From: Sverre Rabbelier Date: Thu, 05 Nov 2009 00:15:55 GMT Subject: Re: [PATCH v2 11/13] Allow helpers to request the path to the .git directory Message-ID: In-Reply-To: <7vd43xg7lf.fsf@alter.siamese.dyndns.org> Heya, On Thu, Nov 5, 2009 at 01:04, Junio C Hamano wrote: > What do you mean by here?  Is it the in > >        [remote "alias"] >                url = hg::http://some.where/repo/sito/ry.hg Yes, that one. > IOW, can a user ever use the foreign interface directly from the command > line, without ever defining such entries in .git/config, perhaps using > "git remote"? No, my primary use case for remote helpers is currently 'git clone hg::https://soc.googlecode.com/hg/', and to have 'git fetch origin' Just Work (tm) from that clone. My secondary use case though, is to support 'git fetch hg:: https://soc.googlecode.com/hg/' just as well and have 'git log FETCH_HEAD' Just Work (tm) too. In that light .git/info/remote-/ is probably a better idea, so that the helper can use say '.git/info/remote-/fetch/ for one-time fetches. -- Cheers, Sverre Rabbelier