git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Subject: git-fetch and unannotated tags
Date: Wed, 25 Apr 2007 20:04:42 +0100	[thread overview]
Message-ID: <200704252004.45112.andyparkins@gmail.com> (raw)

Hello,

I often use unannotated tags to mark particular revisions in a 
repository.  I use unannotated tags just as I would a bookmark.  
Annotated tags I reserve for information about a particular revision 
that I want to share with the world.  In essence I treat unannotated 
tags as private and annotated tags as public.

Unfortunately, git doesn't help me with this.  When I fetch from a 
repository that has unannotated tags, those tags are transferred.

Is there any way to stop this?  I'm fine with git doing automatic 
transfer of annotated tags, but not the unannotated.  The only way I 
can get around this is to use branches instead, that way whether they 
are transferred or not is completely under my control.

That makes me think that perhaps we should remove the special treatment 
of tags and treat them just like any other ref...

[remote "origin"]
  url = whatever
  fetch = refs/tags/*:refs/tags/*

However that still doesn't distinguish between annotated and 
unannotated.  Maybe two different glob tokens?

[remote "origin"]
  url = whatever
  fetch = refs/tags/?:refs/tags/?

Would mean annotated tags only...




Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

             reply	other threads:[~2007-04-25 19:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25 19:04 Andy Parkins [this message]
2007-04-25 19:59 ` git-fetch and unannotated tags Julian Phillips
2007-04-25 20:42   ` Andy Parkins
2007-04-25 21:00     ` Junio C Hamano
2007-04-26  8:04       ` Andy Parkins
2007-04-26 15:21         ` Andreas Ericsson
2007-04-27 15:50           ` Jakub Narebski
2007-04-29  6:44             ` Junio C Hamano
2007-04-25 22:51     ` [PATCH 0/2] bookmarks (was: Re: git-fetch and unannotated tags) Julian Phillips
2007-04-25 22:25       ` [PATCH 1/2] refs.c: change do_one_ref to not discard any of base Julian Phillips
2007-04-25 22:29         ` [PATCH 2/2] Add basic support for bookmarks (create/edit/delete/list) Julian Phillips
2007-04-26  0:17           ` A Large Angry SCM
2007-04-26  0:29             ` Jeffrey C. Ollie
2007-04-26  5:53       ` [PATCH 0/2] bookmarks Junio C Hamano
2007-04-26  7:25         ` Julian Phillips
2007-04-26  7:50           ` Junio C Hamano
2007-04-26  9:04             ` Julian Phillips
2007-04-26  8:23           ` Andy Parkins
2007-04-26  8:33             ` Andy Parkins
2007-04-26 17:09               ` Petr Baudis
2007-04-26  8:08       ` [PATCH 0/2] bookmarks (was: Re: git-fetch and unannotated tags) Andy Parkins
2007-04-26  9:00         ` Julian Phillips
2007-04-26 13:45         ` Karl Hasselström
2007-04-26 16:19         ` Linus Torvalds

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=200704252004.45112.andyparkins@gmail.com \
    --to=andyparkins@gmail.com \
    --cc=git@vger.kernel.org \
    /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).