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
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 25, 2017, 22:35 UTC
Message-ID
<20170425223533.GL28740@aiede.svl.corp.google.com>
In-Reply-To
<20170418191553.15464-1-avarab@gmail.com>
Hi,
Ævar Arnfjörð Bjarmason wrote:
Show 5 quoted lines
> Add a --no-tags option to "git clone" to clone without tags. Currently
> there's no easy way to clone a repository and end up with just a
> "master" branch via --single-branch, or track all branches and no
> tags. Now --no-tags can be added to "git clone" with or without
> --single-branch to clone a repository without tags.

Could --single-branch be made to imply --no-tags, like --depth implies --single-branch? After all, all I wanted is that one branch, not some tags.

Callers who really want the tags could still pass --tags to request that.

Just thinking out loud, Jonathan

Previous: Ævar Arnfjörð Bjarmason
Message 11 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.