<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/url.c, branch v2.4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.9</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-07-10T21:06:46Z</updated>
<entry>
<title>use strbuf_addch for adding single characters</title>
<updated>2014-07-10T21:06:46Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-07-10T08:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=294b2680cd89234618e329e090b68dc69cc41a37'/>
<id>urn:sha1:294b2680cd89234618e329e090b68dc69cc41a37</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/http-auth'</title>
<updated>2011-10-18T04:37:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-18T04:37:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=963838402a94e7fcbd1a73019f80aff708972af8'/>
<id>urn:sha1:963838402a94e7fcbd1a73019f80aff708972af8</id>
<content type='text'>
* jk/http-auth:
  http_init: accept separate URL parameter
  http: use hostname in credential description
  http: retry authentication failures for all http requests
  remote-curl: don't retry auth failures with dumb protocol
  improve httpd auth tests
  url: decode buffers that are not NUL-terminated
</content>
</entry>
<entry>
<title>Merge branch 'jc/is-url-simplify'</title>
<updated>2011-10-14T02:03:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-14T02:03:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b482c0ccca22857709e7f483f0079d7be7327f6'/>
<id>urn:sha1:8b482c0ccca22857709e7f483f0079d7be7327f6</id>
<content type='text'>
* jc/is-url-simplify:
  url.c: simplify is_url()
</content>
</entry>
<entry>
<title>url.c: simplify is_url()</title>
<updated>2011-10-03T17:56:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-03T17:56:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b33a1b9fe794df53b449ffdbba0b39ef9e1772bf'/>
<id>urn:sha1:b33a1b9fe794df53b449ffdbba0b39ef9e1772bf</id>
<content type='text'>
The function was implemented in an overly complicated way.
Rewrite it to check from left to right in a single pass.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>url: decode buffers that are not NUL-terminated</title>
<updated>2011-07-20T18:38:34Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-07-18T07:48:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66c8448543432308e8fce5e3e04076e875410f67'/>
<id>urn:sha1:66c8448543432308e8fce5e3e04076e875410f67</id>
<content type='text'>
The url_decode function needs only minor tweaks to handle
arbitrary buffers. Let's do those tweaks, which cleans up an
unreadable mess of temporary strings in http.c.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix sparse warnings</title>
<updated>2011-03-22T17:16:54Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2011-03-22T07:51:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c2e86addb86689306b992065328ec52aa2479658'/>
<id>urn:sha1:c2e86addb86689306b992065328ec52aa2479658</id>
<content type='text'>
Fix warnings from 'make check'.

 - These files don't include 'builtin.h' causing sparse to complain that
   cmd_* isn't declared:

   builtin/clone.c:364, builtin/fetch-pack.c:797,
   builtin/fmt-merge-msg.c:34, builtin/hash-object.c:78,
   builtin/merge-index.c:69, builtin/merge-recursive.c:22
   builtin/merge-tree.c:341, builtin/mktag.c:156, builtin/notes.c:426
   builtin/notes.c:822, builtin/pack-redundant.c:596,
   builtin/pack-refs.c:10, builtin/patch-id.c:60, builtin/patch-id.c:149,
   builtin/remote.c:1512, builtin/remote-ext.c:240,
   builtin/remote-fd.c:53, builtin/reset.c:236, builtin/send-pack.c:384,
   builtin/unpack-file.c:25, builtin/var.c:75

 - These files have symbols which should be marked static since they're
   only file scope:

   submodule.c:12, diff.c:631, replace_object.c:92, submodule.c:13,
   submodule.c:14, trace.c:78, transport.c:195, transport-helper.c:79,
   unpack-trees.c:19, url.c:3, url.c:18, url.c:104, url.c:117, url.c:123,
   url.c:129, url.c:136, thread-utils.c:21, thread-utils.c:48

 - These files redeclare symbols to be different types:

   builtin/index-pack.c:210, parse-options.c:564, parse-options.c:571,
   usage.c:49, usage.c:58, usage.c:63, usage.c:72

 - These files use a literal integer 0 when they really should use a NULL
   pointer:

   daemon.c:663, fast-import.c:2942, imap-send.c:1072, notes-merge.c:362

While we're in the area, clean up some unused #includes in builtin files
(mostly exec_cmd.h).

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>url: add str wrapper for end_url_with_slash()</title>
<updated>2010-11-26T22:50:45Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2010-11-25T08:21:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3793a309018eac83de7e4a3d39440d236660665c'/>
<id>urn:sha1:3793a309018eac83de7e4a3d39440d236660665c</id>
<content type='text'>
Helped-by: Johnathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>shift end_url_with_slash() from http.[ch] to url.[ch]</title>
<updated>2010-11-26T22:50:45Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2010-11-25T08:21:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1966d9f37b94fa506bfa43961fb111084aaa2c45'/>
<id>urn:sha1:1966d9f37b94fa506bfa43961fb111084aaa2c45</id>
<content type='text'>
This allows non-http/curl users to access it too (eg. http-backend.c).

Update include headers in end_url_with_slash() users too.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Do not unquote + into ' ' in URLs</title>
<updated>2010-07-26T04:57:23Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2010-07-24T14:49:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=730220de8be669257287e9a1f5dde349ace5426a'/>
<id>urn:sha1:730220de8be669257287e9a1f5dde349ace5426a</id>
<content type='text'>
Since 9d2e942 (decode file:// and ssh:// URLs, 2010-05-23) the URL
logic unquotes escaped URLs.  For the %2B type of escape, this is
conformant with RFC 2396.  However, it also unquotes + into a space
character, which is only appropriate for the query strings in HTTP.
This notably broke fetching from the gtk+ repository.

We cannot just remove the corresponding code since the same
url_decode_internal() is also used by the HTTP backend to decode query
parameters.  Introduce a new argument that controls whether the +
decoding happens, and use it only in the (client-side) url_decode().

Reported-by: Jasper St. Pierre &lt;jstpierre@mecheye.net&gt;
Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>url_decode: URL scheme ends with a colon and does not require a slash</title>
<updated>2010-06-24T20:36:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-06-24T20:36:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c73a1d57f9319dbbaf882835608ad421c8b9600'/>
<id>urn:sha1:3c73a1d57f9319dbbaf882835608ad421c8b9600</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
