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

Re: git fetch --tags doesn't quite do what I expect

From
Luck, Tony <tony.luck@intel.com>
Date
Nov 18, 2005, 22:04 UTC
Message-ID
<20051118220458.GA5665@agluck-lia64.sc.intel.com>
In-Reply-To
<7v1x1diuuy.fsf@assigned-by-dhcp.cox.net>
On Fri, Nov 18, 2005 at 12:06:29PM -0800, Junio C Hamano wrote:
> I am not good at documenting things, so I'd appreciate if
> somebody paraphrased the above and send it back to me in a patch
> form to update the document ;-).
How about this:
[PATCH] Update pull/fetch --tags documentation

When fetching/pulling from a remote repository the "--tags" option can be used to pull tags too. Document that it will limit the pull to only commits reachable from the tags.

Signed-off-by: Tony Luck <tony.luck@intel.com>
---
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index 0e502ae..a25d04a 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -8,7 +8,9 @@
 -t, \--tags::
 	By default, the git core utilities will not fetch and store
 	tags under the same name as the remote repository;  ask it
-	to do so using `--tags`.
+	to do so using `--tags`.  Using this option will bound the
+	list of objects pulled to the remote tags.  Commits in branches
+	beyond the tags will be ignored.
 
 -u, \--update-head-ok::
 	By default `git-fetch` refuses to update the head which
Previous: Junio C Hamano
Message 3 of 3 in “git fetch --tags doesn't quite do what I expect”
  1. Tony LuckNov 18, 2005
  2. Junio C HamanoNov 18, 2005
  3. Luck, TonyNov 18, 2005

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.