<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-submodule.sh, branch v2.48.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.48.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.48.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-08-08T16:22:21Z</updated>
<entry>
<title>builtin/submodule: allow "add" to use different ref storage format</title>
<updated>2024-08-08T16:22:21Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-08-08T07:35:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c369fc46d079447d216f7ef309ff60abe493cdb6'/>
<id>urn:sha1:c369fc46d079447d216f7ef309ff60abe493cdb6</id>
<content type='text'>
Same as with "clone", users may want to add a submodule to a repository
with a non-default ref storage format. Wire up a new `--ref-format=`
option that works the same as for `git submodule clone`.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin/submodule: allow cloning with different ref storage format</title>
<updated>2024-08-08T16:20:49Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-08-08T07:35:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ac781ad624a32ca4136eae40b4f416b21f0af96'/>
<id>urn:sha1:5ac781ad624a32ca4136eae40b4f416b21f0af96</id>
<content type='text'>
As submodules are proper self-contained repositories, it is perfectly
valid for them to have a different ref storage format than their parent
repository. There is no obvious way for users to ask for the ref storage
format when initializing submodules though. Whether the setup of such
mixed-ref-storage-format constellations is all that useful remains to be
seen. But there is no good reason to not expose such an option, and we
will require it in a subsequent patch.

Introduce a new `--ref-format=` option for git-submodule(1) that allows
the user to pick the ref storage format. This option will also be used
in a subsequent commit, where we start to propagate the same flag from
git-clone(1) to cloning submodules with the `--recursive` switch.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-submodule.sh: break overly long command lines</title>
<updated>2024-08-08T16:20:48Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-08-08T07:35:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d9ab8788e1dbc47968235b33a051e76c735961b0'/>
<id>urn:sha1:d9ab8788e1dbc47968235b33a051e76c735961b0</id>
<content type='text'>
For most of the subcommands of git-submodule(1), we end up passing a
bunch of arguments to the submodule helper. This quickly leads to overly
long lines, where it becomes hard to spot what has changed when one
needs to modify them.

Break up these lines into one argument per line, similarly to how it is
done for the "clone" subcommand already.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ss/pull-v-recurse-fix'</title>
<updated>2022-12-28T03:06:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-12-28T03:06:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3b9e5c1718e59d2a835291bbc9c28b1762c45ce'/>
<id>urn:sha1:b3b9e5c1718e59d2a835291bbc9c28b1762c45ce</id>
<content type='text'>
"git pull -v --recurse-submodules" attempted to pass "-v" down to
underlying "git submodule update", which did not understand the
request and barfed, which has been corrected.

* ss/pull-v-recurse-fix:
  submodule: accept -v for the update command
</content>
</entry>
<entry>
<title>submodule: accept -v for the update command</title>
<updated>2022-12-18T01:28:30Z</updated>
<author>
<name>Sven Strickroth</name>
<email>email@cs-ware.de</email>
</author>
<published>2022-12-10T13:06:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6f65f847664445b347810bece6eee84c2f39f4ef'/>
<id>urn:sha1:6f65f847664445b347810bece6eee84c2f39f4ef</id>
<content type='text'>
Since a56771a6 (builtin/pull: respect verbosity settings in
submodules, 2018-01-25), "git pull -v --recurse-submodules"
propagates the "-v" to the submodule command, but because the
latter command does not understand the option, it barfs.

Teach "git submodule update" to accept the option to fix it.

Signed-off-by: Sven Strickroth &lt;email@cs-ware.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule--helper: drop "update --prefix &lt;pfx&gt;" for "-C &lt;pfx&gt; update"</title>
<updated>2022-11-08T19:55:30Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-11-08T14:10:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b6e2001c7fd96214b1fe2f910fad5cbb60b607a'/>
<id>urn:sha1:1b6e2001c7fd96214b1fe2f910fad5cbb60b607a</id>
<content type='text'>
Since 29a5e9e1ffe (submodule--helper update-clone: learn --init,
2022-03-04) we've been passing "-C &lt;prefix&gt;" from "git-submodule.sh"
whenever we pass "--prefix &lt;prefix&gt;", so the latter is redundant to
the former. Let's drop the "--prefix" option.

Suggested-by: Glen Choo &lt;chooglen@google.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>submodule--helper: remove --prefix from "absorbgitdirs"</title>
<updated>2022-11-08T19:55:30Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-11-08T14:10:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=64f48ad1f036be2a09273051b28bfacf471cbfcc'/>
<id>urn:sha1:64f48ad1f036be2a09273051b28bfacf471cbfcc</id>
<content type='text'>
Let's pass the "-C &lt;prefix&gt;" option instead to "absorbgitdirs" from
its only caller.

When it was added in f6f85861400 (submodule: add absorb-git-dir
function, 2016-12-12) there were other "submodule--helper" subcommands
that were invoked with "-C &lt;prefix&gt;", so we could have done this all
along.

Suggested-by: Glen Choo &lt;chooglen@google.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>git-submodule.sh: use "$quiet", not "$GIT_QUIET"</title>
<updated>2022-06-28T20:13:18Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:05:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2eec463739745d2110aa5462ba9547fa8d255ebb'/>
<id>urn:sha1:2eec463739745d2110aa5462ba9547fa8d255ebb</id>
<content type='text'>
Remove the use of the "$GIT_QUIET" variable in favor of our own
"$quiet", ever since b3c5f5cb048 (submodule: move core cmd_update()
logic to C, 2022-03-15) we have not used the "say" function in
git-sh-setup.sh, which is the only thing that's affected by using
"GIT_QUIET".

We still want to support --quiet for our own use though, but let's use
our own variable for that. Now it's obvious that we only care about
passing "--quiet" to "git submodule--helper", and not to change the
output of any "say" invocation.

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>
<entry>
<title>submodule--helper: understand --checkout, --merge and --rebase synonyms</title>
<updated>2022-06-28T20:13:17Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:05:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f12108c2951cdfa181d6be66b6def28cd007bdd'/>
<id>urn:sha1:8f12108c2951cdfa181d6be66b6def28cd007bdd</id>
<content type='text'>
Understand --checkout, --merge and --rebase synonyms for
--update={checkout,merge,rebase}, as well as the short options that
'git submodule' itself understands.

This removes a difference between the CLI API of "git submodule" and
"git submodule--helper", making it easier to make the latter an alias
for the former. See 48308681b07 (git submodule update: have a
dedicated helper for cloning, 2016-02-29) for the initial addition of
--update.

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>
<entry>
<title>submodule--helper: rename "absorb-git-dirs" to "absorbgitdirs"</title>
<updated>2022-06-28T20:13:17Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:05:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e556c412e9283cfa9f9be4bfe4e9c813a53bf52'/>
<id>urn:sha1:6e556c412e9283cfa9f9be4bfe4e9c813a53bf52</id>
<content type='text'>
Rename the "absorb-git-dirs" subcommand to "absorbgitdirs", which is
what the "git submodule" command itself has called it since the
subcommand was implemented in f6f85861400 (submodule: add
absorb-git-dir function, 2016-12-12).

Having these two be different will make it more tedious to dispatch to
eventually dispatch "git submodule--helper" directly, as we'd need to
retain this name mapping. So let's get rid of this needless
inconsistency.

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>
