Re: remote#branch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tom Prince
Date: Tuesday, October 30, 2007 - 9:02 am

On Tue, Oct 30, 2007 at 07:59:45AM -0700, Linus Torvalds wrote:

Well, only the last one actually looks like a URL, so that is the only this
discussion is about. I don't think anyone is suggesting that the first three
be changed at all. So, to use your terminology, git has a variety of ways to
specify a repo name, one of which happens to be a URL (or looks like one). The
suggestion is that we should make that way (and only that way) behave like a
RFC URL.

And git should be consistent with web browsers, automatically quoting things
it gets passed. I think the only point of contention is probably how to deal
with URLs that git receives that are already quoted.

1. We ignore the quoting and re-encode everything for the http transport.
2. We honour the encoding and decode everything for the git transport.
3. We handle git:// and http:// different, so that the three git:// URLs below
refer to different repositories, while the three http:// URLs give refer to
the same repository.


The third possibility is probably what we do now, which is why I am suggesting
git is inconsistent. The first will fall down when using a repository that is
colocated, and somebody copies a URL from the web browsers location bar (which
will be properly encoded). Which leaves the second.

  Tom

-
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:
[PATCH] Git homepage: remove all the references to Cogito, Paolo Ciarrocchi, (Mon Oct 15, 2:38 pm)
Re: [PATCH] Git homepage: remove all the references to Cogito, Paolo Ciarrocchi, (Tue Oct 16, 1:01 am)
cogito and remote#branch, was Re: [PATCH] Git homepage: re ..., Johannes Schindelin, (Tue Oct 16, 3:49 am)
Re: remote#branch, Jan Hudec, (Tue Oct 16, 2:09 pm)
Re: remote#branch, Johannes Schindelin, (Tue Oct 16, 2:35 pm)
Re: remote#branch, Jan Hudec, (Sat Oct 27, 1:47 pm)
Re: remote#branch, Johannes Schindelin, (Sat Oct 27, 4:01 pm)
Re: remote#branch, Jan Hudec, (Mon Oct 29, 10:40 am)
Re: remote#branch, Linus Torvalds, (Mon Oct 29, 11:17 am)
Re: remote#branch, Johannes Schindelin, (Mon Oct 29, 11:32 am)
Re: remote#branch, Theodore Tso, (Mon Oct 29, 2:49 pm)
Re: remote#branch, Linus Torvalds, (Mon Oct 29, 3:57 pm)
Re: remote#branch, Johannes Schindelin, (Mon Oct 29, 4:49 pm)
Re: remote#branch, Theodore Tso, (Mon Oct 29, 8:01 pm)
Re: remote#branch, Junio C Hamano, (Mon Oct 29, 8:40 pm)
Re: remote#branch, Theodore Tso, (Mon Oct 29, 9:40 pm)
Re: remote#branch, Linus Torvalds, (Mon Oct 29, 9:50 pm)
Re: remote#branch, Linus Torvalds, (Mon Oct 29, 9:51 pm)
Re: remote#branch, Tom Prince, (Mon Oct 29, 10:37 pm)
Re: remote#branch, Johannes Schindelin, (Tue Oct 30, 3:02 am)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 7:59 am)
Re: remote#branch, Tom Prince, (Tue Oct 30, 9:02 am)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 10:39 am)
Re: remote#branch, Matthieu Moy, (Tue Oct 30, 10:49 am)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 10:58 am)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 11:19 am)
Re: remote#branch, Pascal Obry, (Tue Oct 30, 12:15 pm)
Re: remote#branch, Pascal Obry, (Tue Oct 30, 12:18 pm)
Re: remote#branch, Jan Hudec, (Tue Oct 30, 12:36 pm)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 12:38 pm)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 12:53 pm)
Re: remote#branch, Randal L. Schwartz, (Tue Oct 30, 1:15 pm)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 1:30 pm)
Re: remote#branch, Nicolas Pitre, (Tue Oct 30, 1:36 pm)
Re: remote#branch, Jeff King, (Tue Oct 30, 4:58 pm)
Re: remote#branch, Martin Langhoff, (Tue Oct 30, 5:41 pm)
Re: remote#branch, Linus Torvalds, (Tue Oct 30, 5:59 pm)
Re: remote#branch, Jeff King, (Tue Oct 30, 6:43 pm)
Re: remote#branch, Martin Langhoff, (Tue Oct 30, 6:49 pm)
Re: remote#branch, Jeff King, (Tue Oct 30, 6:59 pm)
Re: remote#branch, Johannes Schindelin, (Tue Oct 30, 8:08 pm)
Re: remote#branch, David Kastrup, (Tue Oct 30, 11:39 pm)
Re: remote#branch, Wincent Colaiuta, (Wed Oct 31, 1:16 am)
Re: remote#branch, Robin Rosenberg, (Wed Oct 31, 1:25 am)
Re: remote#branch, Pascal Obry, (Wed Oct 31, 2:34 am)
Re: remote#branch, Petr Baudis, (Wed Oct 31, 10:13 am)
Re: remote#branch, Erik Warendorph, (Wed Oct 31, 12:29 pm)