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

Re: [PATCH] Teach git-remote to list pushed branches.

From
Johannes Sixt <johannes.sixt@telecom.at>
Date
Mar 20, 2007, 23:27 UTC
Message-ID
<200703210027.32307.johannes.sixt@telecom.at>
In-Reply-To
<7v648wg8sy.fsf@assigned-by-dhcp.cox.net>
On Monday 19 March 2007 23:36, Junio C Hamano wrote:
Show 28 quoted lines
> *1* Actually I think the refspec list on "Push: " lines should
> be split out into separate array elements, because
>
> 	Push: A B C
>
> is equivalent to
>
> 	Push: A
>         Push: B
>         Push: C
>
> This does not apply to "Pull: " lines, as
>
> 	Pull: A B C
>
> and
>
> 	Pull: A
> 	Pull: B
> 	Pull: C
>
> mean quite different things.
>
> This distinction does not matter to the current callers, but I
> was hoping that somebody would build "interactive" mode to edit
> Push and Pull list, and when that happens, having A B C as
> separate entries in @{$hash->{$name}{'PUSH'}} would be handier
> to code.

The patch does just that, I think. It is only that everything is *printed* on one line, just like the tracked branches.

BTW, the .git/remotes parser does not allow multiple refspecs on one 'Push:' line, if I understand it correctly (I'm looking at get_remotes_uri in builtin-push.c).

-- Hannes
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “Teach git-remote to list pushed branches.”
  1. Teach git-remote to list pushed branches.Johannes Sixt, Mar 18, 2007
  2. Junio C HamanoMar 18, 2007
  3. Johannes SixtMar 19, 2007
  4. Junio C HamanoMar 19, 2007
  5. Johannes SixtMar 20, 2007
  6. Junio C HamanoMar 21, 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.