<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/submodule-config.c, branch v2.9.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.9.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.9.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-08-08T21:21:46Z</updated>
<entry>
<title>Merge branch 'rs/submodule-config-code-cleanup' into maint</title>
<updated>2016-08-08T21:21:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-08T21:21:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f7b01d3eb76b5c1d04b774454364e87b49e80b56'/>
<id>urn:sha1:f7b01d3eb76b5c1d04b774454364e87b49e80b56</id>
<content type='text'>
Code cleanup.

* rs/submodule-config-code-cleanup:
  submodule-config: fix test binary crashing when no arguments given
  submodule-config: combine early return code into one goto
  submodule-config: passing name reference for .gitmodule blobs
  submodule-config: use explicit empty string instead of strbuf in config_from()
</content>
</entry>
<entry>
<title>submodule-config: combine early return code into one goto</title>
<updated>2016-07-28T20:05:31Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2016-07-28T12:49:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0918e25077cb9321011a973703cc597b078f0ab5'/>
<id>urn:sha1:0918e25077cb9321011a973703cc597b078f0ab5</id>
<content type='text'>
So we have simpler return handling code and all the cleanup code in
almost one place.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Reviewed-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule-config: passing name reference for .gitmodule blobs</title>
<updated>2016-07-28T20:05:14Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2016-07-28T12:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=514dea905a3c72c8f7268347793f2947efd547be'/>
<id>urn:sha1:514dea905a3c72c8f7268347793f2947efd547be</id>
<content type='text'>
Commit 959b5455 (submodule: implement a config API for lookup of
.gitmodules values, 2015-08-18) implemented the initial version of the
submodule config cache. During development of that initial version we
extracted the function gitmodule_sha1_from_commit(). During that process
we missed that the strbuf rev was still used in config_from() and now is
left empty. Lets fix this by also returning this string.

This means that now when reading .gitmodules from revisions, the error
messages also contain a reference to the blob they are from.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Reviewed-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule-config: use explicit empty string instead of strbuf in config_from()</title>
<updated>2016-07-19T19:16:57Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-07-19T19:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=508a285ceab4523412546a92cd9444f8e78065e1'/>
<id>urn:sha1:508a285ceab4523412546a92cd9444f8e78065e1</id>
<content type='text'>
Use a string constant instead of an empty strbuf to shorten the code
and make it easier to read.

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 'sb/misc-cleanups' into HEAD</title>
<updated>2016-05-18T21:40:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-18T21:40:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66106691a1b71e445fe5e4d6b8b043dffc7dfe4c'/>
<id>urn:sha1:66106691a1b71e445fe5e4d6b8b043dffc7dfe4c</id>
<content type='text'>
* sb/misc-cleanups:
  submodule-config: don't shadow `cache`
  config.c: drop local variable
  credential-cache, send_request: close fd when done
  bundle: don't leak an fd in case of early return
  abbrev_sha1_in_line: don't leak memory
  notes: don't leak memory in git_config_get_notes_strategy
</content>
</entry>
<entry>
<title>Merge branch 'sb/misc-cleanups'</title>
<updated>2016-05-10T20:40:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-10T20:40:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=934908ae5bcd7b9944d925f73e05c60b2687c8b7'/>
<id>urn:sha1:934908ae5bcd7b9944d925f73e05c60b2687c8b7</id>
<content type='text'>
* sb/misc-cleanups:
  submodule-config: don't shadow `cache`
  config.c: drop local variable
</content>
</entry>
<entry>
<title>Merge branch 'ak/use-hashmap-iter-first-in-submodule-config' into maint</title>
<updated>2016-04-29T21:15:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-04-29T21:15:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a4708391d3bf4111ae5598f8e8e9ecdc25ead10a'/>
<id>urn:sha1:a4708391d3bf4111ae5598f8e8e9ecdc25ead10a</id>
<content type='text'>
Minor code cleanup.

* ak/use-hashmap-iter-first-in-submodule-config:
  submodule-config: use hashmap_iter_first()
</content>
</entry>
<entry>
<title>submodule-config: don't shadow `cache`</title>
<updated>2016-04-28T16:56:16Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2016-04-27T21:30:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=99dab16863c2eca584a84bdde748b9c113717603'/>
<id>urn:sha1:99dab16863c2eca584a84bdde748b9c113717603</id>
<content type='text'>
Lots of internal functions in submodule-confic.c have a first parameter
`struct submodule_cache *cache`, which currently always refers to the
global variable `cache` in the file. To avoid confusion rename the
global `cache` variable.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ak/use-hashmap-iter-first-in-submodule-config'</title>
<updated>2016-04-13T21:12:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-04-13T21:12:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73385f20e14be779f06177fb9f307d63662d36d1'/>
<id>urn:sha1:73385f20e14be779f06177fb9f307d63662d36d1</id>
<content type='text'>
Minor code cleanup.

* ak/use-hashmap-iter-first-in-submodule-config:
  submodule-config: use hashmap_iter_first()
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-parallel-update'</title>
<updated>2016-04-06T18:39:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-04-06T18:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdebbeb3346e9867005947aff356b99a7358e5ab'/>
<id>urn:sha1:bdebbeb3346e9867005947aff356b99a7358e5ab</id>
<content type='text'>
A major part of "git submodule update" has been ported to C to take
advantage of the recently added framework to run download tasks in
parallel.

* sb/submodule-parallel-update:
  clone: allow an explicit argument for parallel submodule clones
  submodule update: expose parallelism to the user
  submodule helper: remove double 'fatal: ' prefix
  git submodule update: have a dedicated helper for cloning
  run_processes_parallel: rename parameters for the callbacks
  run_processes_parallel: treat output of children as byte array
  submodule update: direct error message to stderr
  fetching submodules: respect `submodule.fetchJobs` config option
  submodule-config: drop check against NULL
  submodule-config: keep update strategy around
</content>
</entry>
</feed>
