Re: What's cooking in git.git (Aug 2009, #05; Wed, 26)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Monday, August 31, 2009 - 10:06 am

On Sat, 29 Aug 2009, Junio C Hamano wrote:


(with the syntax <helper>+, "git+ssh://" would specify the helper "git", 
which is as good an explicit identifier of the internal handling as any)


If the policy is that we're going to have "traditionally supported" 
schemes, where the internal code knows what helper supports them, I can 
fix up the series so that the curl-based helper is named "curl", and we 
can say that the check for "http://", "ftp://", and "https://" is 
recognizing traditionally-supported schemes, and we can defer coming up 
with what the syntax for the explicit handler selection is. (For that 
matter, if there's a // after the colon, it's obviously not a 
handy ssh-style location, since the second slash would do nothing)

I think you're right that we decided that things we used to support 
internally are a special case, and there's no need to try to generalize 
them to be the general mechanism (even though I think we simultaneously 
worked out how to implement the design we were abandoning, which confused 
my memory).


A user who mostly uses Perforce as a foreign repositories but is using a 
SVN repo on occasion might want to use "vcs" regardless, but I agree with 
forcing the helper to use a different option for the case of a URL that 
git isn't going to look at. That is, you ought to be able to use:

[remote "origin"]
	vcs = svn
	(something) = http://svn.savannah.gnu.org/...

But "(something)" shouldn't be "url".

So my changes will be:

 - name the curl-based helper executable "git-remote-curl", and run it for 
   traditionally supported schemes by special-case.
 - prohibit using both "vcs" and "url" in a remote.

Agreed?

	-Daniel
*This .sig left intentionally blank*
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What's cooking in git.git (Aug 2009, #05; Wed, 26), Junio C Hamano, (Wed Aug 26, 4:45 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Shawn O. Pearce, (Wed Aug 26, 4:49 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Sverre Rabbelier, (Wed Aug 26, 5:10 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Shawn O. Pearce, (Wed Aug 26, 5:12 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Brandon Casey, (Thu Aug 27, 9:41 am)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Junio C Hamano, (Thu Aug 27, 10:32 am)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Brandon Casey, (Thu Aug 27, 11:02 am)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Sverre Rabbelier, (Thu Aug 27, 12:48 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Daniel Barkalow, (Sat Aug 29, 6:46 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Junio C Hamano, (Sat Aug 29, 9:06 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Junio C Hamano, (Sun Aug 30, 1:31 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Daniel Barkalow, (Mon Aug 31, 10:06 am)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Junio C Hamano, (Mon Aug 31, 4:35 pm)
Re: What's cooking in git.git (Aug 2009, #05; Wed, 26), Daniel Barkalow, (Mon Aug 31, 9:18 pm)