login
Header Space

 
 

Re: repo.or.cz wishes?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Martin Mares <mj@...>
Cc: Petr Baudis <pasky@...>, <skimo@...>, <git@...>, Jakub Narebski <jnareb@...>
Date: Monday, August 27, 2007 - 6:27 pm

On Mon, 27 Aug 2007, Martin Mares wrote:

So what does "http://what.the.hell.org/some/file" mean?

Does it mean that you have to start a web browser? Should we make that be

	git+http://what.the.hell.org/some/file

to make it clear that we're doing "git work" over the "http" protocol?

Pretty obviously not.


What does *that* mean? A protocol is a protocol. Your argument that 
protocols are "different" is pointless. Some protocols are usable for git, 
others aren't. OF COURSE different protocols are different. They are 
different in different ways.

Git uses URL's to say how to access something, which includes a protocol, 
an optional host, and a location within the host. It's quite obvious what 
they mean, and it's *also* obvious that the meaning is git-specific. 

Here's what it boils down to:

 - do you think it is sensible to write

	git clone git+file:///some/directory
	git clone git+http://host/directory
	git clone git+rsync://host/directory

   when cloning from the local filesystem, over http, or over rsync 
   respectively? The first one, btw, actually uses the "git protocol". The 
   two others do not, but since a user shouldn't care, it would be really 
   stupid to try to make some internal implementation detail show up in 
   the URL scheme.

 - if you really think that the above is sensible, then explain why.

 - if you think that is TOTALLY IDIOTIC, then explain why "ssh://" is so 
   magically special that it would somehow make sense to say "git+" for 
   it?

As to your TLS example: if we were to do "git over TLS", it would make 
perfect sense to use either "tls://" (although "gits://" might be more 
natural, not because tls is wrong, but because people have gotten used to 
"https://") if we were to have a "secure git" port. Or maybe we'd use the 
same port number that we already have assigned for git, and just add some 
"use TLS to authenticate/encrypt", and use "tls://" for that. It makes 
perfect sense.

In short: you should just ask yourself: what is the most natural thing for 
a *user* to type to "git clone". And no, the "git+" prefix never makes 
sense.

			Linus
-
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:
repo.or.cz wishes?, Petr Baudis, (Sun Aug 26, 7:59 pm)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 5:20 am)
Re: repo.or.cz wishes?, Petr Baudis, (Tue Aug 28, 5:24 am)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 5:52 am)
Re: repo.or.cz wishes?, Uwe , (Mon Aug 27, 3:49 pm)
Re: repo.or.cz wishes?, Johannes Schindelin, (Mon Aug 27, 4:35 am)
Re: repo.or.cz wishes?, Petr Baudis, (Tue Aug 28, 6:19 am)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 7:06 am)
Re: repo.or.cz wishes?, Petr Baudis, (Tue Aug 28, 7:48 am)
Re: repo.or.cz wishes?, Shawn O. Pearce, (Tue Aug 28, 12:10 am)
Re: repo.or.cz wishes?, Theodore Tso, (Tue Aug 28, 7:19 am)
Re: repo.or.cz wishes?, Shawn O. Pearce, (Wed Aug 29, 12:15 am)
Re: repo.or.cz wishes?, Linus Torvalds, (Wed Aug 29, 1:11 pm)
Re: repo.or.cz wishes?, Shawn O. Pearce, (Fri Aug 31, 10:58 pm)
Re: repo.or.cz wishes?, Theodore Tso, (Wed Aug 29, 7:13 am)
Re: repo.or.cz wishes?, Shawn O. Pearce, (Fri Aug 31, 5:09 pm)
Re: repo.or.cz wishes?, Junio C Hamano, (Wed Aug 29, 1:08 am)
Re: repo.or.cz wishes?, Petr Baudis, (Wed Aug 29, 5:58 am)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 7:32 am)
Re: repo.or.cz wishes?, Shawn O. Pearce, (Wed Aug 29, 12:20 am)
Re: repo.or.cz wishes?, Petr Baudis, (Wed Aug 29, 5:54 am)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 4:25 am)
Re: repo.or.cz wishes?, Sam Vilain, (Sun Aug 26, 10:40 pm)
Re: repo.or.cz wishes?, Sven Verdoolaege, (Sun Aug 26, 8:16 pm)
Re: repo.or.cz wishes?, Petr Baudis, (Sun Aug 26, 8:41 pm)
Re: repo.or.cz wishes?, Jakub Narebski, (Mon Aug 27, 5:58 pm)
Re: repo.or.cz wishes?, Sven Verdoolaege, (Tue Aug 28, 4:49 am)
Re: repo.or.cz wishes?, Jakub Narebski, (Tue Aug 28, 5:56 pm)
Re: repo.or.cz wishes?, Sven Verdoolaege, (Wed Aug 29, 3:32 am)
Re: repo.or.cz wishes?, Jakub Narebski, (Wed Aug 29, 7:12 pm)
Re: repo.or.cz wishes?, Linus Torvalds, (Mon Aug 27, 2:23 pm)
Re: repo.or.cz wishes?, Martin Mares, (Mon Aug 27, 4:05 pm)
Re: repo.or.cz wishes?, Linus Torvalds, (Mon Aug 27, 6:27 pm)
Re: repo.or.cz wishes?, Jakub Narebski, (Mon Aug 27, 7:16 pm)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 4:27 am)
Re: repo.or.cz wishes?, Jeff King, (Tue Aug 28, 4:30 am)
Re: repo.or.cz wishes?, Johannes Schindelin, (Tue Aug 28, 5:17 am)
Re: repo.or.cz wishes?, Jeff King, (Tue Aug 28, 5:28 am)
Re: repo.or.cz wishes?, Linus Torvalds, (Tue Aug 28, 6:45 pm)
Re: repo.or.cz wishes?, Sam Vilain, (Mon Aug 27, 6:58 pm)
Re: repo.or.cz wishes?, Andy Parkins, (Tue Aug 28, 8:26 am)
Re: repo.or.cz wishes?, Linus Torvalds, (Mon Aug 27, 7:17 pm)
Re: repo.or.cz wishes?, Sam Vilain, (Mon Aug 27, 7:30 pm)
Re: repo.or.cz wishes?, Linus Torvalds, (Mon Aug 27, 7:34 pm)
Re: repo.or.cz wishes?, Petr Baudis, (Mon Aug 27, 8:50 pm)
Re: repo.or.cz wishes?, Jakub Narebski, (Mon Aug 27, 7:27 pm)
Re: repo.or.cz wishes?, Linus Torvalds, (Mon Aug 27, 7:38 pm)
Re: repo.or.cz wishes?, David Symonds, (Mon Aug 27, 8:38 pm)
Re: repo.or.cz wishes?, David Kastrup, (Tue Aug 28, 1:44 am)
Re: repo.or.cz wishes?, David Symonds, (Tue Aug 28, 2:06 am)
Re: repo.or.cz wishes?, Jing Xue, (Tue Aug 28, 10:31 am)
Re: repo.or.cz wishes?, Andreas Ericsson, (Mon Aug 27, 8:46 pm)
Re: repo.or.cz wishes?, David Symonds, (Mon Aug 27, 8:54 pm)
Re: repo.or.cz wishes?, Andreas Ericsson, (Mon Aug 27, 9:08 pm)
Re: repo.or.cz wishes?, Jing Xue, (Mon Aug 27, 5:27 pm)
Re: repo.or.cz wishes?, Matthieu Moy, (Mon Aug 27, 3:09 pm)
Re: repo.or.cz wishes?, Junio C Hamano, (Mon Aug 27, 2:58 pm)
speck-geostationary