]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'gc/recursive-fetch-with-unused-submodules'
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 Mar 2022 23:38:25 +0000 (16:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Mar 2022 23:38:25 +0000 (16:38 -0700)
commitdd9ff30dffdd03c579f4d867286dac3e46e05c8d
treeeeea4590b6fb9d9d470642a1608021eb70bc63d4
parent6e1a8952e90e5d125177dbdee21425d1ba2d3584
parent5fff35d880df2bb4cfce032c54a95abadce3f881
Merge branch 'gc/recursive-fetch-with-unused-submodules'

When "git fetch --recurse-submodules" grabbed submodule commits
that would be needed to recursively check out newly fetched commits
in the superproject, it only paid attention to submodules that are
in the current checkout of the superproject.  We now do so for all
submodules that have been run "git submodule init" on.

* gc/recursive-fetch-with-unused-submodules:
  submodule: fix latent check_has_commit() bug
  fetch: fetch unpopulated, changed submodules
  submodule: move logic into fetch_task_create()
  submodule: extract get_fetch_task()
  submodule: store new submodule commits oid_array in a struct
  submodule: inline submodule_commits() into caller
  submodule: make static functions read submodules from commits
  t5526: create superproject commits with test helper
  t5526: stop asserting on stderr literally
  t5526: introduce test helper to assert on fetches
builtin/fetch.c