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

Re: [PATCH v2] for-each-ref: add %(upstream:gone) to mark missing refs

From
Jeff King <peff@peff.net>
Date
Aug 24, 2016, 18:07 UTC
Message-ID
<20160824180730.mqlvhkthg4imd2vy@sigill.intra.peff.net>
In-Reply-To
<20160822173528.755-1-oystwa@gmail.com>
On Mon, Aug 22, 2016 at 07:35:28PM +0200, Øystein Walle wrote:
Show 12 quoted lines
> git branch -vv will show "gone" next to a remote tracking branch if it
> does not exist. for-each-ref is suitable for parsing but had no way of
> showing this information.
> 
> This introduces "%(upstream:gone)" to display "gone" in the formatted
> output if the ref does not exist or an empty string otherwise, analogous
> to git branch -vv.
> 
> Signed-off-by: Øystein Walle <oystwa@gmail.com>
> ---
> I took the liberty of sending in a v2 on my own. Removed the last argument to
> stat_tracking_info() and used test_config instead of test_when_finished.

Whoops, your v2 spurred me to review, but I accidentally read and responded to v1.

I think test_config may not be the right thing here, though; see my other comments.

-Peff
Previous: Øystein WalleNext: Øystein Walle
Message 2 of 7 in “for-each-ref: add %(upstream:gone) to mark missing refs”
  1. for-each-ref: add %(upstream:gone) to mark missing refsØystein Walle, Aug 22, 2016
  2. Jeff KingAug 24, 2016
  3. Øystein WalleAug 24, 2016
  4. Jeff KingAug 24, 2016
  5. Karthik NayakAug 25, 2016
  6. Øystein WalleAug 25, 2016
  7. Karthik NayakAug 26, 2016

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.