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