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

Re: Lightweight tag ?

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Jan 12, 2009, 09:17 UTC
Message-ID
<m2bpucnas2.fsf@gmail.com>
In-Reply-To
<7v63klsgf5.fsf@gitster.siamese.dyndns.org>
Hello,
Junio C Hamano <gitster@pobox.com> writes:
> Don't use explicit --tags blindly.  It says "no matter what kind of tag,
> transfer everything under refs/tags".  Otherwise you won't see a
> difference.
Well:
	$ git --version
	git version 1.6.0.4
	$ mkdir test-tag
	$ cd test-tag/
	$ date > A
	$ git init
	Initialized empty Git repository in
	/home/fmoreau/tmp/git/test-tag/.git/
	$ git add .
	$ git commit -a -s -m "Init"
	Created initial commit be8750e: Init
	 1 files changed, 1 insertions(+), 0 deletions(-)
	 create mode 100644 A
	$ cd ..
	$ git clone --bare test-tag test-tag.git
	Initialized empty Git repository in /home/fmoreau/tmp/git/test-tag.git/
	$ cd test-tag
	$ git tag light
	
	$ git tag -a -m "Annoted tag" annoted
	$ git push ../test-tag.git
	Everything up-to-date
	$ git push --tags ../test-tag.git
	Counting objects: 1, done.
	Writing objects: 100% (1/1), 166 bytes, done.
	Total 1 (delta 0), reused 0 (delta 0)
	Unpacking objects: 100% (1/1), done.
	To ../test-tag.git
	 * [new tag]         annoted -> annoted
	 * [new tag]         light -> light
It looks like they're no difference for git-push...
That said the documentation about this is rather cryptic IMHO:
,----[ man git-push ]
| 	--tags
| 	    All refs under $GIT_DIR/refs/tags are pushed, in
| 	    addition to refspecs explicitly listed on the command
| 	    line.
`----
>From a user point of view, the word lightweight is missing here. Why
not simply saying:
,----
| All kind of tags are pushed with this option _otherwise_ only annoted
| tags are pushed
`----
thanks
-- 
Francis
Previous: Junio C HamanoNext: Michael J Gruber
Message 3 of 8 in “Lightweight tag ?”
  1. Francis MoreauJan 11, 2009
  2. Junio C HamanoJan 11, 2009
  3. Francis MoreauJan 12, 2009
  4. Michael J GruberJan 12, 2009
  5. Francis MoreauJan 12, 2009
  6. Michael J GruberJan 12, 2009
  7. Junio C HamanoJan 12, 2009
  8. Francis MoreauJan 12, 2009

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.