Re: [PATCH v2 11/13] Allow helpers to request the path to the .git directory
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Nov 5, 2009, 00:15 UTC
- Message-ID
- <fabb9a1e0911041615o2a1afb6akdb120cdc94864e60@mail.gmail.com>
- In-Reply-To
- <7vd43xg7lf.fsf@alter.siamese.dyndns.org>
Heya,
On Thu, Nov 5, 2009 at 01:04, Junio C Hamano <gitster@pobox.com> wrote:
> What do you mean by <alias> here? Is it the <alias> 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-<vcs>/ is probably a better idea, so that the helper can use say '.git/info/remote-<vcs>/fetch/ for one-time fetches.
-- Cheers, Sverre Rabbelier