<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-submodule.txt, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2020-06-24T16:14:21Z</updated>
<entry>
<title>submodule: fall back to remote's HEAD for missing remote.&lt;name&gt;.branch</title>
<updated>2020-06-24T16:14:21Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2020-06-24T14:46:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f0a96e8d4c98c2394dc726b57b914f95cbc7a0de'/>
<id>urn:sha1:f0a96e8d4c98c2394dc726b57b914f95cbc7a0de</id>
<content type='text'>
When `remote.&lt;name&gt;.branch` is not configured, `git submodule update`
currently falls back to using the branch name `master`. A much better
idea, however, is to use the remote `HEAD`: on all Git servers running
reasonably recent Git versions, the symref `HEAD` points to the main
branch.

Note: t7419 demonstrates that there _might_ be use cases out there that
_expect_ `git submodule update --remote` to update submodules to the
remote `master` branch even if the remote `HEAD` points to another
branch. Arguably, this patch makes the behavior more intuitive, but
there is a slight possibility that this might cause regressions in
obscure setups.

Even so, it should be okay to fix this behavior without anything like a
longer transition period:

- The `git submodule update --remote` command is not really common.

- Current Git's behavior when running this command is outright
  confusing, unless the remote repository's current branch _is_ `master`
  (in which case the proposed behavior matches the old behavior).

- If a user encounters a regression due to the changed behavior, the fix
  is actually trivial: setting `submodule.&lt;name&gt;.branch` to `master`
  will reinstate the old behavior.

Helped-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'es/recursive-single-branch-clone'</title>
<updated>2020-03-05T18:43:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-03-05T18:43:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=b22db265d6bde72391c8d47700dc781a3ea2ae41'/>
<id>urn:sha1:b22db265d6bde72391c8d47700dc781a3ea2ae41</id>
<content type='text'>
"git clone --recurse-submodules --single-branch" now uses the same
single-branch option when cloning the submodules.

* es/recursive-single-branch-clone:
  clone: pass --single-branch during --recurse-submodules
  submodule--helper: use C99 named initializer
</content>
</entry>
<entry>
<title>clone: pass --single-branch during --recurse-submodules</title>
<updated>2020-02-25T18:00:38Z</updated>
<author>
<name>Emily Shaffer</name>
<email>emilyshaffer@google.com</email>
</author>
<published>2020-02-21T03:10:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=132f600b060c2db7fd3d450dfadb6779a61c648a'/>
<id>urn:sha1:132f600b060c2db7fd3d450dfadb6779a61c648a</id>
<content type='text'>
Previously, performing "git clone --recurse-submodules --single-branch"
resulted in submodules cloning all branches even though the superproject
cloned only one branch. Pipe --single-branch through the submodule
helper framework to make it to 'clone' later on.

Signed-off-by: Emily Shaffer &lt;emilyshaffer@google.com&gt;
Acked-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 'km/submodule-doc-use-sm-path'</title>
<updated>2020-02-12T20:41:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-02-12T20:41:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=b2099ebb123af2b299c8125b7a839df44faec68a'/>
<id>urn:sha1:b2099ebb123af2b299c8125b7a839df44faec68a</id>
<content type='text'>
Docfix.

* km/submodule-doc-use-sm-path:
  submodule foreach: replace $path with $sm_path in example
</content>
</entry>
<entry>
<title>submodule foreach: replace $path with $sm_path in example</title>
<updated>2020-01-31T20:57:18Z</updated>
<author>
<name>Kyle Meyer</name>
<email>kyle@kyleam.com</email>
</author>
<published>2020-01-31T17:08:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=04e5b3f0b43db43b3484f72058c080ac1a4a9b38'/>
<id>urn:sha1:04e5b3f0b43db43b3484f72058c080ac1a4a9b38</id>
<content type='text'>
f0fd0dc5c5 (submodule foreach: document '$sm_path' instead of '$path',
2018-05-08) updated the documentation to advise callers to favor
$sm_path over the deprecated synonym $path.  However, the example in
that section still uses $path.  Update it to use $sm_path.

Signed-off-by: Kyle Meyer &lt;kyle@kyleam.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tm/doc-submodule-absorb-fix'</title>
<updated>2020-01-08T20:44:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-01-08T20:44:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a4e4140ac909f0466af239fde2199a11d81bd751'/>
<id>urn:sha1:a4e4140ac909f0466af239fde2199a11d81bd751</id>
<content type='text'>
Typofix.

* tm/doc-submodule-absorb-fix:
  doc: submodule: fix typo for command absorbgitdirs
</content>
</entry>
<entry>
<title>doc: submodule: fix typo for command absorbgitdirs</title>
<updated>2020-01-06T17:24:46Z</updated>
<author>
<name>Thomas Menzel</name>
<email>dev@tomsit.de</email>
</author>
<published>2020-01-06T14:50:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5814d44d9b799764332b10413861537e9a88fb42'/>
<id>urn:sha1:5814d44d9b799764332b10413861537e9a88fb42</id>
<content type='text'>
The sentence wants to talk about the superproject's possesive, not plural form.

Signed-off-by: Thomas Menzel &lt;dev@tomsit.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dl/submodule-set-url'</title>
<updated>2019-12-10T21:11:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-10T21:11:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=99c4ff1bdabc2122a7c6a2b8df87acdd0c2dd18f'/>
<id>urn:sha1:99c4ff1bdabc2122a7c6a2b8df87acdd0c2dd18f</id>
<content type='text'>
"git submodule" learned a subcommand "set-url".

* dl/submodule-set-url:
  submodule: teach set-url subcommand
</content>
</entry>
<entry>
<title>Merge branch 'mg/doc-submodule-status-cached'</title>
<updated>2019-12-05T20:52:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-05T20:52:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=57d46bc602a6911946dc4ba7f4e79cd82cbc1e3e'/>
<id>urn:sha1:57d46bc602a6911946dc4ba7f4e79cd82cbc1e3e</id>
<content type='text'>
"git submodule status" and "git submodule status --cached" show
different things, but the documentation did not cover them
correctly, which has been corrected.

* mg/doc-submodule-status-cached:
  doc: document 'git submodule status --cached'
</content>
</entry>
<entry>
<title>Merge branch 'pb/submodule-update-fetches'</title>
<updated>2019-12-05T20:52:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-05T20:52:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ef6104581d9bfbe74ef99b52a72e436486001ead'/>
<id>urn:sha1:ef6104581d9bfbe74ef99b52a72e436486001ead</id>
<content type='text'>
Doc update.

* pb/submodule-update-fetches:
  doc: mention that 'git submodule update' fetches missing commits
</content>
</entry>
</feed>
