From: Ian Jackson Subject: Re: [PATCH] git urls: prefix with GIT_PROTO_PREFIX Date: Wed, 24 Sep 2014 15:11:22 +0100 Message-ID: <21538.53514.581444.94690@mariner.uk.xensource.com> References: <1411495018-25973-1-git-send-email-ian.jackson@eu.citrix.com> <1411547754.1781.125.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411547754.1781.125.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. > 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). Ian.