git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4] Do not decode url protocol.

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 22, 2010, 21:39 UTC
Message-ID
<vpqmxumu4pp.fsf@bauges.imag.fr>
In-Reply-To
<4C211A39.2080207@obry.net>
Pascal Obry <pascal.obry@gmail.com> writes:
Show 12 quoted lines
> When using the protocol git+ssh:// for example we do not want to
> decode the '+' as a space. The url decoding must take place only
> for the server name and parameters.
>
> This fixes a regression introduced in 9d2e942.
> ---
>  url.c |   19 +++++++++++++++----
>  1 files changed, 15 insertions(+), 4 deletions(-)
>
> Ok, so this is the fourth version of this patch. Thanks again Matthieu
> for the review. I think this time I got the place for the message
> right :)

Hmm, what's so unclear in "between the --- (tripple) and the diffstat." ;-) ? (especially the "between" part)

Show 7 quoted lines
> +       /* Skip protocol if present. */
> +       if (with_protocol) {
> +         first_slash = strchr(*query, '/');
> +
> +         while (q < first_slash)
> +               strbuf_addch(&out, *q++);
> +       }

Nothing personal, but you messed up indentation. Git indents with tabs (8 chars width), not 2 spaces.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Pascal ObryNext: Jeff King
Message 2 of 5 in “Do not decode url protocol.”
  1. Do not decode url protocol.Pascal Obry, Jun 22, 2010
  2. Matthieu MoyJun 22, 2010
  3. Jeff KingJun 22, 2010
  4. Junio C HamanoJun 23, 2010
  5. Jeff KingJun 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.