From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [rfd] auto-following tags upon "git push"?
Date: Tue, 7 Jun 2011 13:30:51 -0400 [thread overview]
Message-ID: <20110607173051.GA22216@sigill.intra.peff.net> (raw)
In-Reply-To: <7v4o417g9s.fsf@alter.siamese.dyndns.org>
On Tue, Jun 07, 2011 at 09:33:35AM -0700, Junio C Hamano wrote:
> So, while we still should _never_ automatically push any tag that points
> at a commit that is being pushed out (i.e. inverse of "fetch" that auto
> follows tags), if the user or the project can give a clear enough hint to
> git which tags are for public consumption, we should at least be able to
> push tags that are for public consumption and do point at commits that are
> being pushed out.
>
> This is just me thinking out loud, but a typical end-user transcript may
> look something like this:
>
> Tell git that v*.* and v*.*.* are release tags (one-time set-up).
> $ git config --unset-all push.autotag
> $ git config --add push.autotag 'v*.*'
> $ git config --add push.autotag 'v*.*.*'
Hmm. Is it a clear enough hint when the user uses an actual tag object
to make a signed or annotated tag? At least for me, private throw-away
tags tend to just be refs/tags/foo pointing to a commit, and real,
for-public-consumption tags at least get an annotation, if not a
signature.
I seem to recall we make a similar distinction somewhere else in the
code, but I can't remember offhand where. Maybe it was just a proposal
that never made it anywhere.
Anyway, the problem would be somebody who does something like:
$ git tag -m "here is a description of how this wip is going" foo-wip
which violates the assumption above. I have no idea how common that is
(I tend to write such descriptions into a WIP commit message, and if I
really want to, tag the resulting commit directly).
-Peff
next prev parent reply other threads:[~2011-06-07 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 16:33 [rfd] auto-following tags upon "git push"? Junio C Hamano
2011-06-07 17:21 ` Shawn Pearce
2011-06-07 17:30 ` Jeff King [this message]
2011-06-07 18:45 ` Junio C Hamano
2011-06-07 23:23 ` Steffen Daode Nurpmeso
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=20110607173051.GA22216@sigill.intra.peff.net \
--to=peff@peff.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).