From: Sam Vilain <sam@vilain.net>
To: martin f krafft <madduck@madduck.net>
Cc: git discussion list <git@vger.kernel.org>
Subject: Re: git-push [--all] and tags
Date: Sun, 07 Oct 2007 14:02:45 +1300 [thread overview]
Message-ID: <47083035.7070904@vilain.net> (raw)
In-Reply-To: <20071006160506.GA28238@lapse.madduck.net>
martin f krafft wrote:
> Hello people,
>
> `git-push --all --tags` does not work because git-push ends up
> calling git-send-pack --all refs/tags/*, which the latter does not
> deal with.
>
> Looking at the code, it seems that previously, --all would push
> everything, not just refs/heads/*. What's the reason that this was
> changed? Why aren't tags considered part of --all?
>
> If I wanted to fix this, so that --all pushes heads and --all --tags
> pushes heads and tags, I could do so in two ways:
>
> 1. instead of --all, pass refs/heads/* to git-send-pack
> 2. add --tags to git-send-pack
>
> which of these two would you prefer and why?
>
Think is, pushing tags is considered to be something that needs to be
done very explicitly; the convention, after all, is that published tags
are forever. Whereas branches change all the time. So, pushing tags
should require an extra flag.
Sam.
next prev parent reply other threads:[~2007-10-07 1:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-06 16:05 git-push [--all] and tags martin f krafft
2007-10-07 1:02 ` Sam Vilain [this message]
2007-10-07 1:26 ` Linus Torvalds
2007-10-07 9:36 ` martin f krafft
2007-10-07 16:39 ` 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=47083035.7070904@vilain.net \
--to=sam@vilain.net \
--cc=git@vger.kernel.org \
--cc=madduck@madduck.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).