Skip to content

clone: --no-tags option

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest5 patches 17 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tests: change "cd ... && git fetch" to "cd &&\n\tgit fetch"t/t5612-clone-refspec.sh+18 -90 replies
2/5clone: add a --no-tags option to clone without tagsDocumentation/git-clone.txt builtin/clone.c contrib/completion/git-completion.bash +1 more+99 -53 replies
3/5tests: rename a test having to do with shallow submodulest/t5614-clone-submodules-shallow.sh+0 -04 replies
4/5clone: add a --no-tags-submodules to pass --no-tags to submodulesDocumentation/git-clone.txt builtin/clone.c builtin/submodule--helper.c +3 more+106 -44 replies
5/5WIP clone: add a --[no-]recommend-tags & submodule.NAME.tags configDocumentation/git-submodule.txt builtin/submodule--helper.c contrib/completion/git-completion.bash +4 more+64 -41 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchBrandon WilliamsÆvar Arnfjörð Bjarmason
1/5
2/5
3/5
4/5Code-by Commit-message-by Git-Completion-Code-by Docs-by Tests-by
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] clone: --no-tags option

This is an expansion of the previously solo 02/05 "clone: add a --no-tags option to clone without tags" patch (see <[email protected]>).

This addresses the comments by Junio & Jonathan Nieder on v2 (thanks a lot), and in addition implements a --no-tags-submodules option. That code was implemented by Brandon & sent to me privately after I'd failed to come up with it, but I added tests, a commit message & bash completion to it.

The WIP 5/5 patch implements a submodule.NAME.tags config facility for the option, but is broken currently & floats along in this submission as an RFC patch. AFAICT it *should* work and it goes through all the motions the similar existing *.shallow config does, but for some reason the tags=false option isn't picked up & propagated in a freshly cloned submodule.

I'm probably missing something trivial, but I can't see what it is, I'm hoping thath either Stefan or Brandon will see what that is.

Brandon Williams (1):
clone: add a --no-tags-submodules to pass --no-tags to submodules

Ævar Arnfjörð Bjarmason (4):
tests: change "cd ... && git fetch" to "cd &&\n\tgit fetch"
clone: add a --no-tags option to clone without tags
tests: rename a test having to do with shallow submodules WIP clone: add a --[no-]recommend-tags & submodule.NAME.tags config

 Documentation/git-clone.txt                        |  21 ++++
 Documentation/git-submodule.txt                    |   8 +-
 builtin/clone.c                                    |  19 +++-
 builtin/submodule--helper.c                        |  21 +++-
 contrib/completion/git-completion.bash             |   3 +
 git-submodule.sh                                   |  13 ++-
 submodule-config.c                                 |   8 ++
 submodule-config.h                                 |   1 +
 t/t5612-clone-refspec.sh                           | 103 +++++++++++++++++---
 ...odules.sh => t5614-clone-submodules-shallow.sh} |   0
 t/t5616-clone-submodules-tags.sh                   | 106 +++++++++++++++++++++
 11 files changed, 284 insertions(+), 19 deletions(-)
 rename t/{t5614-clone-submodules.sh => t5614-clone-submodules-shallow.sh} (100%)
 create mode 100755 t/t5616-clone-submodules-tags.sh
Signature · 1 line
2.11.0