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

Re: git-fetch and unannotated tags

From
Andreas Ericsson <ae@op5.se>
Date
Apr 26, 2007, 15:21 UTC
Message-ID
<4630C377.8000602@op5.se>
In-Reply-To
<200704260904.08447.andyparkins@gmail.com>
Andy Parkins wrote:
Show 7 quoted lines
> 
> I'd be arguing for making not following unannotated tags the default, and then 
> supply a switch to make them followed.  Is that too painful?  I think that's 
> in keeping with the tradition that unannotated tags are, typically, not 
> wanted in a central repository - the default update hook prevents it for 
> example.
> 

Yup. I share your feelings about simple tags. However, unless the repo owner has decided to explicitly push the simple tag to the repo, or fscked up by doing "git push --all" when he had cruft in his own repo, those tags are in fact part of the repo.

In the "oops" case, I'd point this out to the owner so he/she can delete them from the central repo (and enable the update-hook that barfs when simple tags are pushed). If the owner actually wants the tags there, then they're obviously important for some reason, so keeping them might make sense.

If anything, I'd be more interested in teaching git how to clean up simple tags. That fix is useful on a wider basis and the "simple vs annotated" recognition code can be useful for skipping unannotated tags when doing "git push --all --not-simple" (or some such).

I have no idea where to put it though, as I haven't followed git development very closely as of late.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Andy ParkinsNext: Jakub Narebski
Message 6 of 24 in “git-fetch and unannotated tags”
  1. Andy ParkinsApr 25, 2007
  2. Julian PhillipsApr 25, 2007
  3. Andy ParkinsApr 25, 2007
  4. Junio C HamanoApr 25, 2007
  5. Andy ParkinsApr 26, 2007
  6. Andreas EricssonApr 26, 2007
  7. Jakub NarebskiApr 27, 2007
  8. Junio C HamanoApr 29, 2007
  9. 0/2 bookmarks (was: Re: git-fetch and unannotated tags)Julian Phillips, Apr 25, 2007
  10. 1/2 refs.c: change do_one_ref to not discard any of baseJulian Phillips, Apr 25, 2007
  11. 2/2 Add basic support for bookmarks (create/edit/delete/list)Julian Phillips, Apr 25, 2007
  12. A Large Angry SCMApr 26, 2007
  13. Jeffrey C. OllieApr 26, 2007
  14. Junio C HamanoApr 26, 2007
  15. Julian PhillipsApr 26, 2007
  16. Junio C HamanoApr 26, 2007
  17. Julian PhillipsApr 26, 2007
  18. Andy ParkinsApr 26, 2007
  19. Andy ParkinsApr 26, 2007
  20. Petr BaudisApr 26, 2007
  21. Andy ParkinsApr 26, 2007
  22. Julian PhillipsApr 26, 2007
  23. Karl HasselströmApr 26, 2007
  24. Linus TorvaldsApr 26, 2007

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.