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, 13:56 UTC
Message-ID
<38b2ab8a0901120556x279f320oe693304dd2452050@mail.gmail.com>
In-Reply-To
<496B3DA8.1040308@drmicha.warpmail.net>

On Mon, Jan 12, 2009 at 1:55 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

> Your test above confirms that the description is correct and nothing is
> missing. "git push" pushes explicitly listed refspecs (or : as a
> default). It pushes tags (light and heavy) when asked to.
>

So do you mean that the only way I have for pushing annoted tags only is to do:

   $ git push origin refs/tags/annoted
That's not what Junio said:
   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.

So I interpret this like don't use --tags otherwise lightweight and annoted tags are the same.

> "git pull" pulls tags if they can be reached from heads which are
> pulled. It pulls all tags only when asked to.
>
[...]
> So, "non-local" tags are the ones which can be reached from heads which
> you pull, and local ones are the others.

So I can't create a local tag on public heads (the ones I'm pushing out), can I ?

> I don't think lightweight tags are more local than tag objects
> (please correct me if I'm wrong; I think this needs more doc)

Perhaps it needs documents which are more user friendly: I don't know where the 'lightweight' word is coming from (perhaps from the implementation) but I would expect that the _local_ term appears in the git-tag manual.

> It's just that the latter reside in the object db
> store whereas the former are simple refs under refs/tags.
That's implementation detail...

I just need to create a local tag where I'm sure it won't be seen by others whatever the git operations I'm doing, normally a simple "git tag" switch should be enough...

thanks.
-- 
Francis
Previous: Michael J GruberNext: Michael J Gruber
Message 5 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.