<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/submodule-config.h, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-10-17T01:27:18Z</updated>
<entry>
<title>implement fetching of moved submodules</title>
<updated>2017-10-17T01:27:18Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2017-10-16T13:58:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c68f8375760dc6b77f9c68772230a9c6cfd52aa7'/>
<id>urn:sha1:c68f8375760dc6b77f9c68772230a9c6cfd52aa7</id>
<content type='text'>
We store the changed submodules paths to calculate which submodule needs
fetching. This does not work for moved submodules since their paths do
not stay the same in case of a moved submodules. In case of new
submodules we do not have a path in the current checkout, since they
just appeared in this fetch.

It is more general to collect the submodule names for changes instead of
their paths to include the above cases. If we do not have a
configuration for a gitlink we rely on constructing a default name from
the path if a git repository can be found at its path. We skip
non-configured gitlinks whose default name collides with a configured
one.

With the change described above we implement 'on-demand' fetching of
changes in moved submodules.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule-config: move submodule-config functions to submodule-config.c</title>
<updated>2017-08-03T20:11:01Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-08-03T18:19:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b796ace7b5566d7cd2ed2ee56d3e5b1f7605272'/>
<id>urn:sha1:1b796ace7b5566d7cd2ed2ee56d3e5b1f7605272</id>
<content type='text'>
Migrate the functions used to initialize the submodule-config to
submodule-config.c so that the callback routine used in the
initialization process can be static and prevent it from being used
outside of initializing the submodule-config through the main API.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule-config: remove support for overlaying repository config</title>
<updated>2017-08-03T20:11:01Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-08-03T18:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=32bc548329d20d33fb25973d76440eccd260c433'/>
<id>urn:sha1:32bc548329d20d33fb25973d76440eccd260c433</id>
<content type='text'>
All callers have been migrated to explicitly read any configuration they
need.  The support for handling it automatically in submodule-config is
no longer needed.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/object-id' into bw/submodule-config-cleanup</title>
<updated>2017-08-02T21:34:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-02T21:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a46ddc992bbac524fb325875c5555dbae0c6355b'/>
<id>urn:sha1:a46ddc992bbac524fb325875c5555dbae0c6355b</id>
<content type='text'>
* bc/object-id:
  sha1_name: convert uses of 40 to GIT_SHA1_HEXSZ
  sha1_name: convert GET_SHA1* flags to GET_OID*
  sha1_name: convert get_sha1* to get_oid*
  Convert remaining callers of get_sha1 to get_oid.
  builtin/unpack-file: convert to struct object_id
  bisect: convert bisect_checkout to struct object_id
  builtin/update_ref: convert to struct object_id
  sequencer: convert to struct object_id
  remote: convert struct push_cas to struct object_id
  submodule: convert submodule config lookup to use object_id
  builtin/merge-tree: convert remaining caller of get_sha1 to object_id
  builtin/fsck: convert remaining caller of get_sha1 to object_id
  tag: convert gpg_verify_tag to use struct object_id
  commit: convert lookup_commit_graft to struct object_id
</content>
</entry>
<entry>
<title>submodule: remove submodule.fetchjobs from submodule-config parsing</title>
<updated>2017-08-02T21:26:46Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-08-02T19:49:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f20e7c1ea2459d9b8c12f8ed1f1546665841b643'/>
<id>urn:sha1:f20e7c1ea2459d9b8c12f8ed1f1546665841b643</id>
<content type='text'>
The '.gitmodules' file should only contain information pertinent to
configuring individual submodules (name to path mapping, URL where to
obtain the submodule, etc.) while other configuration like the number of
jobs to use when fetching submodules should be a part of the
repository's config.

Remove the 'submodule.fetchjobs' configuration option from the general
submodule-config parsing and instead rely on using the
'config_from_gitmodules()' in order to maintain backwards compatibility
with this config being placed in the '.gitmodules' file.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule: convert submodule config lookup to use object_id</title>
<updated>2017-07-17T20:54:37Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2017-07-13T23:49:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cd73de47148c16760a62fa3f75cafe015ca764b2'/>
<id>urn:sha1:cd73de47148c16760a62fa3f75cafe015ca764b2</id>
<content type='text'>
Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/pull-rebase-submodule'</title>
<updated>2017-07-13T23:14:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-13T23:14:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c9c63ee558ce3399bd2016388da9676d4f5ecf55'/>
<id>urn:sha1:c9c63ee558ce3399bd2016388da9676d4f5ecf55</id>
<content type='text'>
"git pull --rebase --recurse-submodules" learns to rebase the
branch in the submodules to an updated base.

* sb/pull-rebase-submodule:
  builtin/fetch cleanup: always set default value for submodule recursing
  pull: optionally rebase submodules (remote submodule changes only)
  builtin/fetch: parse recurse-submodules-default at default options parsing
  builtin/fetch: factor submodule recurse parsing out to submodule config
</content>
</entry>
<entry>
<title>submodule-config: store the_submodule_cache in the_repository</title>
<updated>2017-06-24T01:24:34Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-06-22T18:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bf12fcdf5ec00e6b7d0978750df9e0146eb57c75'/>
<id>urn:sha1:bf12fcdf5ec00e6b7d0978750df9e0146eb57c75</id>
<content type='text'>
Refactor how 'the_submodule_cache' is handled so that it can be stored
inside of a repository object.  Also migrate 'the_submodule_cache' to be
stored in 'the_repository'.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin/fetch: factor submodule recurse parsing out to submodule config</title>
<updated>2017-06-23T22:26:55Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-06-23T19:13:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=886dc154d8086dffb16e0830a1db2f024758fe52'/>
<id>urn:sha1:886dc154d8086dffb16e0830a1db2f024758fe52</id>
<content type='text'>
Later we want to access this parsing in builtin/pull as well.

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>update submodules: add submodule config parsing</title>
<updated>2017-03-16T01:15:54Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-03-14T21:46:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d601fd09573540287d1e00e3a25ef6311885bb46'/>
<id>urn:sha1:d601fd09573540287d1e00e3a25ef6311885bb46</id>
<content type='text'>
Similar to b33a15b08 (push: add recurseSubmodules config option,
2015-11-17) and 027771fcb1 (submodule: allow erroneous values for the
fetchRecurseSubmodules option, 2015-08-17), we add submodule-config code
that is later used to parse whether we are interested in updating
submodules.

We need the `die_on_error` parameter to be able to call this parsing
function for the config file as well, which if incorrect lets Git die.

As we're just touching the header file, also mark all functions extern.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
