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

Re: [PATCH 2/2] push: --follow-tag

From
Jeff King <peff@peff.net>
Date
Mar 5, 2013, 18:22 UTC
Message-ID
<20130305182255.GB10928@sigill.intra.peff.net>
In-Reply-To
<5135DBE5.6080909@alum.mit.edu>
On Tue, Mar 05, 2013 at 12:49:57PM +0100, Michael Haggerty wrote:
Show 15 quoted lines
> > One obvious alternative is only to push annotated tags with this
> > feature. That has the downside of not matching fetch's behavior, as well
> > as withholding the feature from people whose workflow uses only
> > unannotated tags.
> > 
> > Another alternative would be to change the inclusion rule from
> > "reachable" to "points at the tip of something being sent". But then we
> > lose the feature that it would backfill any old tags the remote happens
> > to be missing.
> 
> I have no opinion on this matter, but ISTM that another obvious
> alternative would be to push tags that point at *any* commits that are
> being sent (not just at the tip), but not those that point to older
> commits already known to the server.  This would reduce the potential
> for accidental pushes of "distant" tags.

Yeah, I think that is another sensible variant. It does not really "backfill" in the way that Junio's patch does (e.g., if you forgot to push out v1.6 to a remote 2 weeks ago and now you are pushing out v1.7, Junio's patch will magically fill it in). But I do not see a huge value in backfilling. It is anyone's guess whether you simply forgot to push out v1.6 or whether you intended to hold it back. And I'd rather err on the side of not-pushing because of the difficulty of retraction.

-Peff
Previous: Michael HaggertyNext: Junio C Hamano
Message 5 of 11 in “commit: add in_merge_bases_many()”
  1. 1/2 commit: add in_merge_bases_many()Junio C Hamano, Mar 5, 2013
  2. 2/2 push: --follow-tagJunio C Hamano, Mar 5, 2013
  3. Jeff KingMar 5, 2013
  4. Michael HaggertyMar 5, 2013
  5. Jeff KingMar 5, 2013
  6. Junio C HamanoMar 5, 2013
  7. Jeff KingMar 5, 2013
  8. Junio C HamanoMar 5, 2013
  9. Jeff KingMar 5, 2013
  10. Junio C HamanoMar 5, 2013
  11. Jeff KingMar 5, 2013

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.