git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] clone: add a --no-tags option to clone without tags

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Apr 18, 2017, 21:06 UTC
Message-ID
<CACBZZX4CD52j=fz_DPmVpsMLa-Dxu-iJ=GB8YQ6QFKOh1RWQ_g@mail.gmail.com>
In-Reply-To
<20170418191553.15464-1-avarab@gmail.com>

On Tue, Apr 18, 2017 at 9:15 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

>                     N_("clone only one branch, HEAD or --branch")),
> +       OPT_BOOL_NONEG(0, "no-tags", &option_no_tags,
> +                      N_("don't clone any tags, and set remote.<name>.tagOpt=--no-tags")),
>         OPT_BOOL(0, "shallow-submodules", &option_shallow_submodules,

I forgot to note that this is on top of my earlier patch which adds OPT_BOOL_NONEG, see <20170418170914.9701-1-avarab@gmail.com>, but otherwise applies on top of master, and will work just fine by amending that to say OPT_BOOL (although --no-no-tags will then exist, as noted in the other patch).

Previous: Ævar Arnfjörð BjarmasonNext: Brandon Williams
Message 3 of 11 in “Is there a way to get 'git fetch --no-tags' semantics with 'git clone'?”
  1. Ævar Arnfjörð BjarmasonApr 14, 2017
  2. clone: add a --no-tags option to clone without tagsÆvar Arnfjörð Bjarmason, Apr 18, 2017
  3. Ævar Arnfjörð BjarmasonApr 18, 2017
  4. Brandon WilliamsApr 18, 2017
  5. Junio C HamanoApr 19, 2017
  6. Junio C HamanoApr 19, 2017
  7. clone: add a --no-tags option to clone without tagsÆvar Arnfjörð Bjarmason, Apr 19, 2017
  8. Jonathan NiederApr 25, 2017
  9. Junio C HamanoApr 26, 2017
  10. Ævar Arnfjörð BjarmasonApr 26, 2017
  11. Jonathan NiederApr 25, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.