git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steffen Daode Nurpmeso <sdaoden@googlemail.com>
To: Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: [rfd] auto-following tags upon "git push"?
Date: Wed, 8 Jun 2011 01:23:01 +0200	[thread overview]
Message-ID: <20110607232301.GB28023@sherwood.local> (raw)
In-Reply-To: <7v4o417g9s.fsf@alter.siamese.dyndns.org>

If there would be a free bit somewhere in a tag object (or so):

    $ git tag --autopush -ma "This will be pushed along it's commit" T1

This i would understand at a glance!
And it is both, explicit on the one and automatic on the other
hand.  I.e.: work, work, work - commit & tag, hours pass until
internet access and then

    $ if-up-and-push-it-all-and-if-down.sh

.. and that would only do 'cd repo && git push'.
But having a short look into tag.c does not give much hope on that.
Maybe a new file .git/AUTOPUSH to which all SHA-1 to be
pushed automatically are simply appended.

@ Junio C Hamano <gitster@pobox.com> wrote:
>    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*.*.*'

I will blow that one, one of these days.

@ Jeff King <peff@peff.net> wrote:
> 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.
> [.] 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 did understand that -m/-F required storage and thus force
creation of a tag object.  But hey - it's a bit odd, isn't it?
(Thinking about it some more it's very convenient that the
possibility exists.  But it will require more than one glance.
You know - that's ok for me, given all those features which will
make life easier once they're discovered and understood.)
--
Ciao, Steffen
sdaoden(*)(gmail.com)
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments

      parent reply	other threads:[~2011-06-07 23:23 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
2011-06-07 18:45   ` Junio C Hamano
2011-06-07 23:23 ` Steffen Daode Nurpmeso [this message]

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=20110607232301.GB28023@sherwood.local \
    --to=sdaoden@googlemail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /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).