Skip to content

Add option to recurse into submodules

Stefan Beller git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 4 repliesIn review
  2. v13 patches 9 repliesSuperseded

Changes in v2 from the cover letter

* this applies on sb/reset-recurse-submodules
* grep and push are also respecting submodule.recurse now.
* Brandon seemed to disagree with the first patch as it may hurt with his 'RFC repo object' series [1], but I explained a possible way out in [2] and Brandon seemed to agree that this makes sense offlist.
That first patch was changed to include loading the gitmodules file in the call to loading the config.

[1] https://public-inbox.org/git/[email protected]/
[2] https://public-inbox.org/git/CAGZ79kb+31h6f_9fuUpbfeY7xxjP-kbvqz6J5K5sbPEmdPNvpw@mail.gmail.com/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6submodule.c: add has_submodules to check if we have any submodulesbuiltin/checkout.c builtin/fetch.c builtin/read-tree.c +5 more+79 -332 replies
2/6submodule test invocation: only pass additional argumentst/lib-submodule-update.sh t/t1013-read-tree-submodule.sh t/t2013-checkout-submodule.sh +1 more+10 -82 replies
3/6Introduce submodule.recurse option for worktree manipulatorsDocumentation/config.txt builtin/checkout.c submodule.c +1 more+25 -70 replies
4/6builtin/fetch.c: respect 'submodule.recurse' optionsubmodule.c t/t5526-fetch-submodules.sh+11 -00 replies
5/6builtin/grep.c: respect 'submodule.recurse' optionbuiltin/grep.c t/t7814-grep-recurse-submodules.sh+21 -00 replies
6/6builtin/push.c: respect 'submodule.recurse' optionbuiltin/push.c t/t5531-deep-submodule-push.sh+25 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHv2 0/6] Add option to recurse into submodules

v2:
* this applies on sb/reset-recurse-submodules
* grep and push are also respecting submodule.recurse now.
* Brandon seemed to disagree with the first patch as it may hurt with his 'RFC repo object' series [1], but I explained a possible way out in [2] and Brandon seemed to agree that this makes sense offlist.
That first patch was changed to include loading the gitmodules file in the call to loading the config.

[1] https://public-inbox.org/git/[email protected]/
[2] https://public-inbox.org/git/CAGZ79kb+31h6f_9fuUpbfeY7xxjP-kbvqz6J5K5sbPEmdPNvpw@mail.gmail.com/

v1:
In a submodule heavy workflow it becomes tedious to pass in --recurse-submodules all the time, so make an option for it.

Thanks,
Stefan

Stefan Beller (6):
submodule.c: add has_submodules to check if we have any submodules submodule test invocation: only pass additional arguments Introduce submodule.recurse option for worktree manipulators builtin/fetch.c: respect 'submodule.recurse' option builtin/grep.c: respect 'submodule.recurse' option builtin/push.c: respect 'submodule.recurse' option

 Documentation/config.txt           |  5 +++
 builtin/checkout.c                 |  9 ++--
 builtin/fetch.c                    |  3 +-
 builtin/grep.c                     |  3 ++
 builtin/push.c                     |  4 ++
 builtin/read-tree.c                |  3 +-
 builtin/reset.c                    |  3 +-
 builtin/submodule--helper.c        | 10 ++---
 submodule.c                        | 85 +++++++++++++++++++++++++++++++-------
 submodule.h                        |  8 +++-
 t/lib-submodule-update.sh          | 18 +++++++-
 t/t1013-read-tree-submodule.sh     |  4 +-
 t/t2013-checkout-submodule.sh      |  4 +-
 t/t5526-fetch-submodules.sh        | 10 +++++
 t/t5531-deep-submodule-push.sh     | 21 ++++++++++
 t/t7112-reset-submodule.sh         |  4 +-
 t/t7814-grep-recurse-submodules.sh | 18 ++++++++
 unpack-trees.c                     |  3 +-
 18 files changed, 169 insertions(+), 46 deletions(-)
Signature · 1 line
2.13.0.18.g7d86cc8ba0