Thread (20 messages) 20 messages, 3 authors, 2017-04-28

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

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2017-04-28 19:11:47

On Thu, Apr 27, 2017 at 1:12 AM, Ævar Arnfjörð Bjarmason
[off-list ref] wrote:
This is an expansion of the previously solo 02/05 "clone: add a
--no-tags option to clone without tags" patch (see
[ref]).

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.
Junio, can you please just take patch 1-3 in this series, i.e.:

DROP:
Brandon Williams (1):
  clone: add a --no-tags-submodules to pass --no-tags to submodules
[...]
  WIP clone: add a --[no-]recommend-tags & submodule.NAME.tags config
KEEP:
Æ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
I think a fair summary of the discussion so far is that the submodule
interaction I copy/pasted from --shallow-submodules isn't how we want
to do things at all, I defer to Stefan & Brandon on that.

The only other objection to the patches marked as KEEP is from Stefan
saying it should be --tags on by default not --no-tags off by default.
As noted in [ref]
I don't disagree, but a lot of flags in git now use that pattern, and
this change is consistent with those. Makes sense to discuss changing
that as another series.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help