<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/http.c, branch v2.3.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-10-14T17:49:01Z</updated>
<entry>
<title>Merge branch 'da/include-compat-util-first-in-c'</title>
<updated>2014-10-14T17:49:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-14T17:49:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=211836f77bc85eafe5c24fcbd70cd7583ce68328'/>
<id>urn:sha1:211836f77bc85eafe5c24fcbd70cd7583ce68328</id>
<content type='text'>
Code clean-up.

* da/include-compat-util-first-in-c:
  cleanups: ensure that git-compat-util.h is included first
</content>
</entry>
<entry>
<title>cleanups: ensure that git-compat-util.h is included first</title>
<updated>2014-09-15T19:05:14Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2014-09-14T07:40:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c4b6604126781361fe89d88ace70f53079fbab5'/>
<id>urn:sha1:1c4b6604126781361fe89d88ace70f53079fbab5</id>
<content type='text'>
CodingGuidelines states that the first #include in C files should be
git-compat-util.h or another header file that includes it, such as
cache.h or builtin.h.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'br/http-init-fix'</title>
<updated>2014-09-11T17:33:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-11T17:33:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6c1d42acae99ee0bbb9af8e91c5dca5d8fbb4f39'/>
<id>urn:sha1:6c1d42acae99ee0bbb9af8e91c5dca5d8fbb4f39</id>
<content type='text'>
Code clean-up.

* br/http-init-fix:
  http: style fixes for curl_multi_init error check
  http.c: die if curl_*_init fails
</content>
</entry>
<entry>
<title>http: style fixes for curl_multi_init error check</title>
<updated>2014-08-21T17:53:55Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-08-17T07:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8837eb47f27665450c898affc39816c48edacd80'/>
<id>urn:sha1:8837eb47f27665450c898affc39816c48edacd80</id>
<content type='text'>
Unless there is a good reason, we should use die() rather than
fprintf/exit. We can also shorten the message to match other curl init
failures (and match our usual lowercase no-full-stop style).

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>run-command: introduce CHILD_PROCESS_INIT</title>
<updated>2014-08-20T16:53:37Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-08-19T19:09:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3180279322c7450a47decf8833de47f444ca93f'/>
<id>urn:sha1:d3180279322c7450a47decf8833de47f444ca93f</id>
<content type='text'>
Most struct child_process variables are cleared using memset first after
declaration.  Provide a macro, CHILD_PROCESS_INIT, that can be used to
initialize them statically instead.  That's shorter, doesn't require a
function call and is slightly more readable (especially given that we
already have STRBUF_INIT, ARGV_ARRAY_INIT etc.).

Helped-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
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>http.c: die if curl_*_init fails</title>
<updated>2014-08-18T17:11:42Z</updated>
<author>
<name>Bernhard Reiter</name>
<email>ockham@raz.or.at</email>
</author>
<published>2014-08-13T17:31:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=faa3807cfe95bace6eaa9e8775520fab713c27d0'/>
<id>urn:sha1:faa3807cfe95bace6eaa9e8775520fab713c27d0</id>
<content type='text'>
Signed-off-by: Bernhard Reiter &lt;ockham@raz.or.at&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/skip-prefix'</title>
<updated>2014-07-09T18:33:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-09T18:33:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e91ae32a01ffe294b8510c1d8cd7138493a0712f'/>
<id>urn:sha1:e91ae32a01ffe294b8510c1d8cd7138493a0712f</id>
<content type='text'>
* jk/skip-prefix:
  http-push: refactor parsing of remote object names
  imap-send: use skip_prefix instead of using magic numbers
  use skip_prefix to avoid repeated calculations
  git: avoid magic number with skip_prefix
  fetch-pack: refactor parsing in get_ack
  fast-import: refactor parsing of spaces
  stat_opt: check extra strlen call
  daemon: use skip_prefix to avoid magic numbers
  fast-import: use skip_prefix for parsing input
  use skip_prefix to avoid repeating strings
  use skip_prefix to avoid magic numbers
  transport-helper: avoid reading past end-of-string
  fast-import: fix read of uninitialized argv memory
  apply: use skip_prefix instead of raw addition
  refactor skip_prefix to return a boolean
  avoid using skip_prefix as a boolean
  daemon: mark some strings as const
  parse_diff_color_slot: drop ofs parameter
</content>
</entry>
<entry>
<title>use skip_prefix to avoid repeated calculations</title>
<updated>2014-06-20T17:45:19Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-06-18T19:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de8118e153c5e527263086605e437ccca5d4f1ef'/>
<id>urn:sha1:de8118e153c5e527263086605e437ccca5d4f1ef</id>
<content type='text'>
In some cases, we use starts_with to check for a prefix, and
then use an already-calculated prefix length to advance a
pointer past the prefix. There are no magic numbers or
duplicated strings here, but we can still make the code
simpler and more obvious by using skip_prefix.

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>http: fix charset detection of extract_content_type()</title>
<updated>2014-06-17T22:25:00Z</updated>
<author>
<name>Yi EungJun</name>
<email>eungjun.yi@navercorp.com</email>
</author>
<published>2014-06-17T22:11:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f34a655d4d1e25f314cd5760e2a39bec28950aa1'/>
<id>urn:sha1:f34a655d4d1e25f314cd5760e2a39bec28950aa1</id>
<content type='text'>
extract_content_type() could not extract a charset parameter if the
parameter is not the first one and there is a whitespace and a following
semicolon just before the parameter. For example:

    text/plain; format=fixed ;charset=utf-8

And it also could not handle correctly some other cases, such as:

    text/plain; charset=utf-8; format=fixed
    text/plain; some-param="a long value with ;semicolons;"; charset=utf-8

Thanks-to: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Yi EungJun &lt;eungjun.yi@navercorp.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http: default text charset to iso-8859-1</title>
<updated>2014-05-27T16:59:22Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-05-22T09:36:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c553fd1c1ef76688b6200e66a825b530b0b02140'/>
<id>urn:sha1:c553fd1c1ef76688b6200e66a825b530b0b02140</id>
<content type='text'>
This is specified by RFC 2616 as the default if no "charset"
parameter is given.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
