<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/http.c, branch v2.15.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.15.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.15.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-09-22T03:49:55Z</updated>
<entry>
<title>curl_trace(): eliminate switch fallthrough</title>
<updated>2017-09-22T03:49:55Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-09-21T06:23:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d0e9983980a25e0c398cc03342e5ad22ef85b8a8'/>
<id>urn:sha1:d0e9983980a25e0c398cc03342e5ad22ef85b8a8</id>
<content type='text'>
Our trace handler is called by curl with a curl_infotype
variable to interpret its data field. For most types we
print the data and then break out of the switch. But for
CURLINFO_TEXT, we print data and then fall through to the
"default" case, which does the exact same thing (nothing!)
that breaking out of the switch would.

This is probably a leftover from an early iteration of the
patch where the code after the switch _did_ do something
interesting that was unique to the non-text case arms.
But in its current form, this fallthrough is merely
confusing (and causes gcc's -Wimplicit-fallthrough to
complain).

Let's make CURLINFO_TEXT like the other case arms, and push
the default arm to the end where it's more obviously a
catch-all.

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>Merge branch 'jt/packmigrate'</title>
<updated>2017-08-27T05:55:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-27T05:55:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eabdcd4ab4b04af8f39e5ea3847b6d364acb874e'/>
<id>urn:sha1:eabdcd4ab4b04af8f39e5ea3847b6d364acb874e</id>
<content type='text'>
Code movement to make it easier to hack later.

* jt/packmigrate: (23 commits)
  pack: move for_each_packed_object()
  pack: move has_pack_index()
  pack: move has_sha1_pack()
  pack: move find_pack_entry() and make it global
  pack: move find_sha1_pack()
  pack: move find_pack_entry_one(), is_pack_valid()
  pack: move check_pack_index_ptr(), nth_packed_object_offset()
  pack: move nth_packed_object_{sha1,oid}
  pack: move clear_delta_base_cache(), packed_object_info(), unpack_entry()
  pack: move unpack_object_header()
  pack: move get_size_from_delta()
  pack: move unpack_object_header_buffer()
  pack: move {,re}prepare_packed_git and approximate_object_count
  pack: move install_packed_git()
  pack: move add_packed_git()
  pack: move unuse_pack()
  pack: move use_pack()
  pack: move pack-closing functions
  pack: move release_pack_memory()
  pack: move open_pack_index(), parse_pack_index()
  ...
</content>
</entry>
<entry>
<title>Merge branch 'tc/curl-with-backports'</title>
<updated>2017-08-24T17:20:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-24T17:20:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6ea13d88456c116b14c3bc756993b5f462c981cb'/>
<id>urn:sha1:6ea13d88456c116b14c3bc756993b5f462c981cb</id>
<content type='text'>
Updates to the HTTP layer we made recently unconditionally used
features of libCurl without checking the existence of them, causing
compilation errors, which has been fixed.  Also migrate the code to
check feature macros, not version numbers, to cope better with
libCurl that vendor ships with backported features.

* tc/curl-with-backports:
  http: use a feature check to enable GSSAPI delegation control
  http: fix handling of missing CURLPROTO_*
</content>
</entry>
<entry>
<title>pack: move pack name-related functions</title>
<updated>2017-08-23T22:12:06Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2017-08-18T22:20:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f39cd821d1756f5f6d145f987576660136931ee'/>
<id>urn:sha1:4f39cd821d1756f5f6d145f987576660136931ee</id>
<content type='text'>
Currently, sha1_file.c and cache.h contain many functions, both related
to and unrelated to packfiles. This makes both files very large and
causes an unclear separation of concerns.

Create a new file, packfile.c, to hold all packfile-related functions
currently in sha1_file.c. It has a corresponding header packfile.h.

In this commit, the pack name-related functions are moved. Subsequent
commits will move the other functions.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http: use a feature check to enable GSSAPI delegation control</title>
<updated>2017-08-11T22:12:41Z</updated>
<author>
<name>Tom G. Christensen</name>
<email>tgc@jupiterrise.com</email>
</author>
<published>2017-08-11T16:37:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd5df538b501661f60ffed3eb8486b9eed138c48'/>
<id>urn:sha1:dd5df538b501661f60ffed3eb8486b9eed138c48</id>
<content type='text'>
Turn the version check into a feature check to ensure this functionality
is also enabled with vendor supported curl versions where the feature
may have been backported.

Signed-off-by: Tom G. Christensen &lt;tgc@jupiterrise.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http: fix handling of missing CURLPROTO_*</title>
<updated>2017-08-11T22:12:07Z</updated>
<author>
<name>Tom G. Christensen</name>
<email>tgc@jupiterrise.com</email>
</author>
<published>2017-08-11T16:37:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f18777ba6ef23c30c68d2d4799b6ba512785288f'/>
<id>urn:sha1:f18777ba6ef23c30c68d2d4799b6ba512785288f</id>
<content type='text'>
Commit aeae4db1 refactored the handling of the curl protocol
restriction support into a function but failed to add a version
check for older versions of curl that lack CURLPROTO_* support.

Add the missing check and at the same time convert it to a feature
check instead of a version based check.  This is done to ensure that
vendor supported curl versions that have had CURLPROTO_* support
backported are handled correctly.

Signed-off-by: Tom G. Christensen &lt;tgc@jupiterrise.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/http-sslkey-and-ssl-cert-are-paths'</title>
<updated>2017-08-11T20:26:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-11T20:26:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=17b1e1d76c581cfbd4a83a38136b5efef0dc7aa4'/>
<id>urn:sha1:17b1e1d76c581cfbd4a83a38136b5efef0dc7aa4</id>
<content type='text'>
The http.{sslkey,sslCert} configuration variables are to be
interpreted as a pathname that honors "~[username]/" prefix, but
weren't, which has been fixed.

* jc/http-sslkey-and-ssl-cert-are-paths:
  http.c: http.sslcert and http.sslkey are both pathnames
</content>
</entry>
<entry>
<title>http.c: http.sslcert and http.sslkey are both pathnames</title>
<updated>2017-07-20T20:37:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-20T20:30:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d1549643e814d2f8f0de2991d69c1331c8181d7'/>
<id>urn:sha1:8d1549643e814d2f8f0de2991d69c1331c8181d7</id>
<content type='text'>
Back when the modern http_options() codepath was created to parse
various http.* options at 29508e1e ("Isolate shared HTTP request
functionality", 2005-11-18), and then later was corrected for
interation between the multiple configuration files in 7059cd99
("http_init(): Fix config file parsing", 2009-03-09), we parsed
configuration variables like http.sslkey, http.sslcert as plain
vanilla strings, because git_config_pathname() that understands
"~[username]/" prefix did not exist.  Later, we converted some of
them (namely, http.sslCAPath and http.sslCAInfo) to use the
function, and added variables like http.cookeyFile http.pinnedpubkey
to use the function from the beginning.  Because of that, these
variables all understand "~[username]/" prefix.

Make the remaining two variables, http.sslcert and http.sslkey, also
aware of the convention, as they are both clearly pathnames to
files.

Noticed-by: Victor Toni &lt;victor.toni@gmail.com&gt;
Helped-by: Charles Bailey &lt;cbailey32@bloomberg.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/free-and-null'</title>
<updated>2017-06-24T21:28:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-24T21:28:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=50f03c6676ed5ea040dd53272882d3aac2ee1b48'/>
<id>urn:sha1:50f03c6676ed5ea040dd53272882d3aac2ee1b48</id>
<content type='text'>
A common pattern to free a piece of memory and assign NULL to the
pointer that used to point at it has been replaced with a new
FREE_AND_NULL() macro.

* ab/free-and-null:
  *.[ch] refactoring: make use of the FREE_AND_NULL() macro
  coccinelle: make use of the "expression" FREE_AND_NULL() rule
  coccinelle: add a rule to make "expression" code use FREE_AND_NULL()
  coccinelle: make use of the "type" FREE_AND_NULL() rule
  coccinelle: add a rule to make "type" code use FREE_AND_NULL()
  git-compat-util: add a FREE_AND_NULL() wrapper around free(ptr); ptr = NULL
</content>
</entry>
<entry>
<title>coccinelle: make use of the "type" FREE_AND_NULL() rule</title>
<updated>2017-06-16T19:44:03Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2017-06-15T23:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6a83d902073803c4141e02c53decf8c03e35da27'/>
<id>urn:sha1:6a83d902073803c4141e02c53decf8c03e35da27</id>
<content type='text'>
Apply the result of the just-added coccinelle rule. This manually
excludes a few occurrences, mostly things that resulted in many
FREE_AND_NULL() on one line, that'll be manually fixed in a subsequent
change.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
