From: Jeff King <peff@peff.net>
To: "Øystein Walle" <oystwa@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v2] for-each-ref: add %(upstream:gone) to mark missing refs
Date: Wed, 24 Aug 2016 14:07:30 -0400 [thread overview]
Message-ID: <20160824180730.mqlvhkthg4imd2vy@sigill.intra.peff.net> (raw)
In-Reply-To: <20160822173528.755-1-oystwa@gmail.com>
On Mon, Aug 22, 2016 at 07:35:28PM +0200, Øystein Walle wrote:
> 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
next prev parent reply other threads:[~2016-08-24 18:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 17:35 [PATCH v2] for-each-ref: add %(upstream:gone) to mark missing refs Øystein Walle
2016-08-24 18:07 ` Jeff King [this message]
2016-08-24 18:26 ` Øystein Walle
2016-08-24 18:33 ` Jeff King
2016-08-25 5:56 ` Karthik Nayak
2016-08-25 8:45 ` Øystein Walle
2016-08-26 6:31 ` Karthik Nayak
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160824180730.mqlvhkthg4imd2vy@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=oystwa@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).