From: "Francis Moreau" <francis.moro@gmail.com>
To: "Michael J Gruber" <git@drmicha.warpmail.net>
Cc: "Junio C Hamano" <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: Lightweight tag ?
Date: Mon, 12 Jan 2009 14:56:49 +0100 [thread overview]
Message-ID: <38b2ab8a0901120556x279f320oe693304dd2452050@mail.gmail.com> (raw)
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
next prev parent reply other threads:[~2009-01-12 13:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-11 18:44 Lightweight tag ? Francis Moreau
2009-01-11 21:04 ` Junio C Hamano
2009-01-12 9:17 ` Francis Moreau
2009-01-12 12:55 ` Michael J Gruber
2009-01-12 13:56 ` Francis Moreau [this message]
2009-01-12 14:54 ` Michael J Gruber
2009-01-12 19:52 ` Junio C Hamano
2009-01-12 20:50 ` Francis Moreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38b2ab8a0901120556x279f320oe693304dd2452050@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).