]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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)
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

1  2 
builtin/fetch.c

diff --cc builtin/fetch.c
Simple merge