<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/submodule-config.c, branch v2.13.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.13.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.13.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-03-28T21:05:58Z</updated>
<entry>
<title>Merge branch 'sb/checkout-recurse-submodules'</title>
<updated>2017-03-28T21:05:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-28T21:05:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e394fa01d65a5e182639e226f5b46eca999cd8d7'/>
<id>urn:sha1:e394fa01d65a5e182639e226f5b46eca999cd8d7</id>
<content type='text'>
"git checkout" is taught the "--recurse-submodules" option.

* sb/checkout-recurse-submodules:
  builtin/read-tree: add --recurse-submodules switch
  builtin/checkout: add --recurse-submodules switch
  entry.c: create submodules when interesting
  unpack-trees: check if we can perform the operation for submodules
  unpack-trees: pass old oid to verify_clean_submodule
  update submodules: add submodule_move_head
  submodule.c: get_super_prefix_or_empty
  update submodules: move up prepare_submodule_repo_env
  submodules: introduce check to see whether to touch a submodule
  update submodules: add a config option to determine if submodules are updated
  update submodules: add submodule config parsing
  make is_submodule_populated gently
  lib-submodule-update.sh: define tests for recursing into submodules
  lib-submodule-update.sh: replace sha1 by hash
  lib-submodule-update: teach test_submodule_content the -C &lt;dir&gt; flag
  lib-submodule-update.sh: do not use ./. as submodule remote
  lib-submodule-update.sh: reorder create_lib_submodule_repo
  submodule--helper.c: remove duplicate code
  connect_work_tree_and_git_dir: safely create leading directories
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-config-parse-ignore-fix'</title>
<updated>2017-03-21T22:07:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-21T22:07:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e15b9606557d590e1cdc1e3b1b9154cce455a4c8'/>
<id>urn:sha1:e15b9606557d590e1cdc1e3b1b9154cce455a4c8</id>
<content type='text'>
Code to read submodule.&lt;name&gt;.ignore config did not state the
variable name correctly when giving an error message diagnosing
misconfiguration.

* sb/submodule-config-parse-ignore-fix:
  submodule-config: correct error reporting for invalid ignore value
</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>
<entry>
<title>submodule-config: correct error reporting for invalid ignore value</title>
<updated>2017-03-15T18:26:08Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-03-14T22:14:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ea304896e1e2bfbf104c4098df70f93b5952cfa'/>
<id>urn:sha1:5ea304896e1e2bfbf104c4098df70f93b5952cfa</id>
<content type='text'>
As 'var' contains the whole value we get error messages that repeat
the section and key currently:

warning: Invalid parameter 'true' for config option 'submodule.submodule.plugins/hooks.ignore.ignore'

Fix this by only giving the section name in the warning.

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 'bw/push-submodule-only'</title>
<updated>2017-01-31T21:14:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-31T21:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=792e22e3fd99f204be11b0ff173f2d991308dca5'/>
<id>urn:sha1:792e22e3fd99f204be11b0ff173f2d991308dca5</id>
<content type='text'>
"git submodule push" learned "--recurse-submodules=only option to
push submodules out without pushing the top-level superproject.

* bw/push-submodule-only:
  push: add option to push only submodules
  submodules: add RECURSE_SUBMODULES_ONLY value
  transport: reformat flag #defines to be more readable
</content>
</entry>
<entry>
<title>Merge branch 'bw/grep-recurse-submodules'</title>
<updated>2017-01-18T23:12:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-18T23:12:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=55d128ae06b7b82f867961b677984620612a201c'/>
<id>urn:sha1:55d128ae06b7b82f867961b677984620612a201c</id>
<content type='text'>
"git grep" has been taught to optionally recurse into submodules.

* bw/grep-recurse-submodules:
  grep: search history of moved submodules
  grep: enable recurse-submodules to work on &lt;tree&gt; objects
  grep: optionally recurse into submodules
  grep: add submodules as a grep source type
  submodules: load gitmodules file from commit sha1
  submodules: add helper to determine if a submodule is initialized
  submodules: add helper to determine if a submodule is populated
  real_path: canonicalize directory separators in root parts
  real_path: have callers use real_pathdup and strbuf_realpath
  real_path: create real_pathdup
  real_path: convert real_path_internal to strbuf_realpath
  real_path: resolve symlinks by hand
</content>
</entry>
<entry>
<title>submodules: load gitmodules file from commit sha1</title>
<updated>2016-12-22T19:47:33Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2016-12-16T19:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ebf689aad72bfc091da21e1d73a05308f1ace85'/>
<id>urn:sha1:9ebf689aad72bfc091da21e1d73a05308f1ace85</id>
<content type='text'>
teach submodules to load a '.gitmodules' file from a commit sha1.  This
enables the population of the submodule_cache to be based on the state
of the '.gitmodules' file from a particular commit.

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>submodules: add RECURSE_SUBMODULES_ONLY value</title>
<updated>2016-12-20T20:26:34Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2016-12-19T18:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6c656c3fe4ba13cdf03ed85c059690653fd376cb'/>
<id>urn:sha1:6c656c3fe4ba13cdf03ed85c059690653fd376cb</id>
<content type='text'>
Add the `RECURSE_SUBMODULES_ONLY` enum value to submodule.h.  This enum
value will be used in a later patch to push to indicate that only
submodules should be pushed, while the superproject should remain
unpushed.

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: rename commit_sha1 to treeish_name</title>
<updated>2016-11-22T22:43:03Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2016-11-22T20:14:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73c293bb6c15992690b16c90bcac243a76d86400'/>
<id>urn:sha1:73c293bb6c15992690b16c90bcac243a76d86400</id>
<content type='text'>
It is also possible to pass in any treeish name to lookup a submodule
config. Make it clear by naming the variables accordingly. Looking up
a submodule config by tree hash will come in handy in a later patch.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Reviewed-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: inline config_from_{name, path}</title>
<updated>2016-11-22T22:43:03Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2016-11-22T20:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6ead0f2dba3bdd9c1250298a4d82ea05cec2333'/>
<id>urn:sha1:e6ead0f2dba3bdd9c1250298a4d82ea05cec2333</id>
<content type='text'>
There is no other user of config_from_{name, path}, such that there is no
reason for the existence of these one liner functions. Just inline these
to increase readability.

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