1/6/2024 0 Comments Git add remote submodule![]() See Working with git submodules recursively for the init part. If -recursive is specified, this command will recurse into the registered submodules, and update any nested submodules within. This change reduces the time for git fetch ( man) in my repo from 25s to 6s.Īs joschi mentions in the comments, git submodule now supports the -recursive option (Git1.6.5 and more). Similar logic can be found in cat-file, pack-objects and more. Notify setup_revisions() that the input is not filenames by passing assume_dashdash, so it can avoid redundant stat for each ref.Īlso suppress refname_ambiguity flag to avoid filesystem lookups for each object. The argv argument of collect_changed_submodules() contains only object ids (the objects references of all the refs). (Merged by Junio C Hamano - gitster - in commit 2ce9d4e, ) submodule: suppress checking for file name and ref ambiguity for object ids ![]() See commit a462bee () by Orgad Shaneh ( orgads). Note that Git 2.29 (Q4 2020) brings a significant optimization around submodule handling. If you just want to clone them at their recorded SHA1: git clone -recurse-submodules Other than that, they're looking nicer than submodules.Git 2.23 (Q3 2019): if you want to clone and update the submodules to their latest revision: git clone -recurse-submodules -remote-submodules
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |