Skip to content

decoupling a submodule's existence and its url

Brandon Williams git 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 35 repliesIn review
  2. v211 patches 6 repliesSuperseded
  3. v110 patches 10 repliesSuperseded

Changes in v3 from the cover letter

* Droped a patch which tried to use a more accurate URL for deinit. It didn't really fit inside the scope of this series. It may be something we want to revisit later though.

* The --init-active flag now ensure that all submodules which are configured to be 'active' (either via 'submodule.active' or 'submodule.<name>.active') go through the initialization phase and have their relevent info copied over to the config.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10submodule--helper: add is_active commandbuiltin/submodule--helper.c t/t7413-submodule-is-active.sh+42 -03 replies
2/10submodule status: use submodule--helper is-activegit-submodule.sh+1 -26 replies
3/10submodule sync: use submodule--helper is-activegit-submodule.sh+1 -12 replies
4/10submodule--helper clone: check for configured submodules using helperbuiltin/submodule--helper.c+3 -124 replies
5/10submodule: decouple url and submodule existenceDocumentation/config.txt submodule.c t/t7413-submodule-is-active.sh+100 -65 replies
6/10submodule update: add `--init-active` switchDocumentation/git-submodule.txt builtin/submodule--helper.c git-submodule.sh +1 more+123 -54 replies
7/10clone: add --submodule-spec=<pathspec> switchDocumentation/git-clone.txt builtin/clone.c t/t7400-submodule-basic.sh+120 -93 replies
8/10completion: clone can initialize specific submodulescontrib/completion/git-completion.bash+1 -00 replies
9/10submodule--helper init: set submodule.<name>.activebuiltin/submodule--helper.c+7 -03 replies
10/10submodule add: respect submodule.active and submodule.<name>.activegit-submodule.sh t/t7413-submodule-is-active.sh+33 -02 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 00/10] decoupling a submodule's existence and its url

changes in v3:

* Droped a patch which tried to use a more accurate URL for deinit. It didn't really fit inside the scope of this series. It may be something we want to revisit later though.

* The --init-active flag now ensure that all submodules which are configured to be 'active' (either via 'submodule.active' or 'submodule.<name>.active') go through the initialization phase and have their relevent info copied over to the config.

Brandon Williams (10):
submodule--helper: add is_active command
submodule status: use submodule--helper is-active submodule sync: use submodule--helper is-active submodule--helper clone: check for configured submodules using helper
submodule: decouple url and submodule existence
submodule update: add --init-active switch
clone: add --submodule-spec=<pathspec> switch
completion: clone can initialize specific submodules submodule--helper init: set submodule.<name>.active submodule add: respect submodule.active and submodule.<name>.active

 Documentation/config.txt               |  15 +++-
 Documentation/git-clone.txt            |  23 ++++--
 Documentation/git-submodule.txt        |   9 +++
 builtin/clone.c                        |  36 +++++++++-
 builtin/submodule--helper.c            |  68 ++++++++++++++----
 contrib/completion/git-completion.bash |   1 +
 git-submodule.sh                       |  43 +++++++++--
 submodule.c                            |  36 ++++++++--
 t/t7400-submodule-basic.sh             | 128 +++++++++++++++++++++++++++++++++
 t/t7413-submodule-is-active.sh         | 107 +++++++++++++++++++++++++++
 10 files changed, 431 insertions(+), 35 deletions(-)
 create mode 100755 t/t7413-submodule-is-active.sh
Signature · 1 line
2.12.0.246.ga2ecc84866-goog