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

Re: git-push [--all] and tags

From
Sam Vilain <sam@vilain.net>
Date
Oct 7, 2007, 01:02 UTC
Message-ID
<47083035.7070904@vilain.net>
In-Reply-To
<20071006160506.GA28238@lapse.madduck.net>
martin f krafft wrote:
Show 18 quoted lines
> 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.
Previous: martin f krafftNext: Linus Torvalds
Message 2 of 5 in “git-push [--all] and tags”
  1. martin f krafftOct 6, 2007
  2. Sam VilainOct 7, 2007
  3. Linus TorvaldsOct 7, 2007
  4. martin f krafftOct 7, 2007
  5. Linus TorvaldsOct 7, 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.