Skip to content

Submodule improvements

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7submodule: implement a config API for lookup of .gitmodules values.gitignore Documentation/technical/api-submodule-config.txt Makefile +6 more+671 -00 replies
2/7submodule: extract functions for config set and lookupsubmodule.c+97 -450 replies
3/7submodule: use new config API for worktree configurationsDocumentation/technical/api-submodule-config.txt builtin/checkout.c diff.c +6 more+104 -1380 replies
4/7submodule: Allow errornous values for the fetchrecursesubmodules optionbuiltin/fetch.c submodule-config.c submodule-config.h +3 more+66 -171 reply
5/7submodule: implement `module_list` as a builtin helper.gitignore Makefile builtin.h +3 more+124 -484 replies
6/7submodule: implement `module_name` as a builtin helperbuiltin/submodule--helper.c git-submodule.sh+34 -260 replies
7/7submodule: implement `module_clone` as a builtin helperbuiltin/submodule--helper.c git-submodule.sh+162 -772 replies
7/7submodule: implement `module_clone` as a builtin helperbuiltin/submodule--helper.c git-submodule.sh+163 -782 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Submodule improvements

This series is a reroll consisting of hv/submodule-config and sb/submodule-helper and it applies on top of origin/jk/git-path.

Our long term goal is to make submodule handling more scalable by parallelizing the submodule code. To write good parallelizable code I'd first want to port it to C, as there are no good portable solutions for shell scripts to run in parallel. This series is a first step on porting git-submodule.sh to C.

I did not alter the patches of Heiko, except for squashing $gmane/275799 (2 cleanup patches I proposed 5 days ago).

The module_{list, name, clone} functions are a direct translation of the shell counter parts. I took way longer than expected for module_clone, as I was fighting with absolute and relative paths for too long. (Whenever shell is translated to C,
I estimate two times the number of lines of code which fits quite reasonably.)

Thanks,
Stefan

Heiko Voigt (4):
submodule: implement a config API for lookup of .gitmodules values
submodule: extract functions for config set and lookup
submodule: use new config API for worktree configurations
submodule: Allow errornous values for the fetchrecursesubmodules
option

Stefan Beller (3):
submodule: implement module_list as a builtin helper
submodule: implement module_name as a builtin helper
submodule: implement module_clone as a builtin helper

 .gitignore                                       |   2 +
 Documentation/technical/api-submodule-config.txt |  62 +++
 Makefile                                         |   3 +
 builtin.h                                        |   1 +
 builtin/checkout.c                               |   1 +
 builtin/fetch.c                                  |   1 +
 builtin/submodule--helper.c                      | 299 ++++++++++++++
 diff.c                                           |   1 +
 git-submodule.sh                                 | 164 +-------
 git.c                                            |   1 +
 submodule-config.c                               | 482 +++++++++++++++++++++++
 submodule-config.h                               |  29 ++
 submodule.c                                      | 122 ++----
 submodule.h                                      |   4 +-
 t/t7411-submodule-config.sh                      | 153 +++++++
 test-submodule-config.c                          |  76 ++++
 16 files changed, 1154 insertions(+), 247 deletions(-)
 create mode 100644 Documentation/technical/api-submodule-config.txt
 create mode 100644 builtin/submodule--helper.c
 create mode 100644 submodule-config.c
 create mode 100644 submodule-config.h
 create mode 100755 t/t7411-submodule-config.sh
 create mode 100644 test-submodule-config.c
Signature · 1 line
2.5.0.330.g130be8e.dirty