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

Re: git-remote add: --no-tags/--tags which one is the default option

From
Kevin Daudt <me@ikke.info>
Date
Mar 3, 2015, 22:09 UTC
Message-ID
<20150303220918.GB17528@vps892.directvps.nl>
In-Reply-To
<54F431E8.3050009@gmail.com>
On Mon, Mar 02, 2015 at 10:48:24AM +0100, Francis Moreau wrote:
Show 7 quoted lines
> Hi,
> 
> git remote add has --no-tags/--tags option, but I can't find in the man
> page which one is the default.
> 
> Could anybody tell me the default option ?
> 

Neither is default. This option has three states, set, unset and default:

- unset (--no-tags) doesn't fetch any tags at all
- default (no option passed) will fetch any tags that are reachable from the refs that are
  being fetch
- set (--tags) will fetch all tags, even if they aren't reachable.

These options can also be set with the remote.<name>.tagopt config option, which takes values [--tags|--no-tags].

Kevin
Previous: Francis Moreau
Message 6 of 6 in “git-remote add: --no-tags/--tags which one is the default option”
  1. Francis MoreauMar 2, 2015
  2. git-remote.txt: describe behavior without --tags and --no-tagsMichael J Gruber, Mar 2, 2015
  3. Francis MoreauMar 2, 2015
  4. Michael J GruberMar 2, 2015
  5. Francis MoreauMar 2, 2015
  6. Kevin DaudtMar 3, 2015

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.