Skip to content

RFC fetch: make sure submodule oids are fetched

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10string_list: print_string_list to use trace_printfstring-list.c+2 -22 replies
2/10string-list.h: add string_list_pop function.string-list.c string-list.h+14 -06 replies
3/10sha1-array: provide oid_array_remove_ifsha1-array.c sha1-array.h+42 -05 replies
4/10submodule.c: convert submodule_move_head new argument to object identry.c submodule.c submodule.h +1 more+15 -181 reply
5/10submodule.c: fix indentationsubmodule.c+5 -30 replies
6/10submodule.c: sort changed_submodule_names before searching itsubmodule.c+2 -10 replies
7/10submodule: move global changed_submodule_names into fetch submodule structsubmodule.c+23 -190 replies
8/10submodule.c: do not copy around submodule listsubmodule.c+10 -90 replies
9/10submodule: fetch in submodules git directory instead of in worktreesubmodule.c t/t5526-fetch-submodules.sh+37 -130 replies
10/10fetch: retry fetching submodules if sha1 were not fetchedbuiltin/fetch.c submodule.c t/t5526-fetch-submodules.sh+97 -72 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 00/10] fetch: make sure submodule oids are fetched

Currently when git-fetch is asked to recurse into submodules, it dispatches a plain "git-fetch -C <submodule-dir>" (and some submodule related options such as prefix and recusing strategy, but) without any information of the remote or the tip that should be fetched.

This works surprisingly well in some workflows, not so well in others, which this series aims to fix.

The first patches provide new basic functionality and do some refactoring; the interesting part is in the two last patches.

Thanks,
Stefan

Stefan Beller (10):
string_list: print_string_list to use trace_printf string-list.h: add string_list_pop function.
sha1-array: provide oid_array_remove_if
submodule.c: convert submodule_move_head new argument to object id submodule.c: fix indentation
submodule.c: sort changed_submodule_names before searching it
submodule: move global changed_submodule_names into fetch submodule
struct
submodule.c: do not copy around submodule list
submodule: fetch in submodules git directory instead of in worktree
fetch: retry fetching submodules if sha1 were not fetched

 builtin/fetch.c             |   9 +-
 entry.c                     |   6 +-
 sha1-array.c                |  39 ++++++++
 sha1-array.h                |   3 +
 string-list.c               |  12 ++-
 string-list.h               |   6 ++
 submodule.c                 | 194 +++++++++++++++++++++++++++---------
 submodule.h                 |   2 +-
 t/t5526-fetch-submodules.sh |  23 ++++-
 unpack-trees.c              |  13 +--
 10 files changed, 241 insertions(+), 66 deletions(-)
Signature · 1 line
2.18.0.597.ga71716f1ad-goog