[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] git urls: prefix with GIT_PROTO_PREFIX

On Wed, 2014-09-24 at 15:11 +0100, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH] git urls: prefix with GIT_PROTO_PREFIX"):
> > On Tue, 2014-09-23 at 18:56 +0100, Ian Jackson wrote:
> > > This allows the prefixing of all git clone and fetch URLs with
> > > a single fixed string.  This could be used to:
> > >  - clone from a local tree /path/to/something/git:/whatever/thing
> > >  - use a cacheing git proxy such as found in chiark-utils
> > 
> > Is this intended as a for-personal-use version of the munging osstest
> > does?
> I just used it like that to test George's tarball series.
> osstest could probably usefully use it too.
> > I've no problem with the patch but two idle thoughts:
> > 
> > Should the default be "git://" (and that prefix dropped from the values)
> > to reduce the odd naming requirements for local trees?
> Maybe.  I decided not, because the way I did it makes the actual usual
> URLs nice and clear.

That's a good argument.

> > Could this be done globally for a user via .gitconfig and pullInsteadOf?
> > Perhaps with:
> > [url "git://"]
> >     pullInsteadOf = "/path/to/something/git:/"
> > or (more usefully perhaps) the equivalent proxy rune?
> You would have to list all of the urls.  There isn't a formal way to
> extract them from the xen.git tree (there's git grep and sed, but
> that's pretty yucky and not necessary reliable).

I meant the "git://" above literally, i.e. transliterate everything
starting with "git://".

Not terribly desirable for the path based usage, I'll admit.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.