From: Matthieu Moy <Matthieu.Moy@grenoble-inp•fr>
To: Junio C Hamano <gitster@pobox•com>
Cc: Karthik Nayak <karthik.188@gmail•com>, Git <git@vger•kernel.org>,
Christian Couder <christian.couder@gmail•com>
Subject: Re: [RFC] Porting builtin/branch.c to use the printing options of ref-filter.{c,h}
Date: Tue, 25 Aug 2015 22:06:51 +0200 [thread overview]
Message-ID: <vpqvbc3t9no.fsf@anie.imag.fr> (raw)
In-Reply-To: <xmqq4mjnyzfy.fsf@gitster.dls.corp.google.com> (Junio C. Hamano's message of "Tue, 25 Aug 2015 11:50:57 -0700")
Junio C Hamano <gitster@pobox•com> writes:
> A less ambitious option might be:
>
> 3. Invent "%(refname:<some magic>)" format similar to
> %(refname:short) but does your thing depending on the prefix
> refs/heads/ and refs/remotes/.
Actually, this is the option I suggest offline.
> but that will not work if the difference between local and remote
> format is not merely textual (e.g. paint them in different color).
Hmm, yes, colors would be difficult to get with this solution. Perhaps a
%(refname:autoprefix,autocolor) that would pick the color and do the
textual rendering?
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next prev parent reply other threads:[~2015-08-25 20:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 17:45 [RFC] Porting builtin/branch.c to use the printing options of ref-filter.{c,h} Karthik Nayak
2015-08-25 18:50 ` Junio C Hamano
2015-08-25 20:06 ` Matthieu Moy [this message]
2015-08-25 20:47 ` Junio C Hamano
2015-08-26 6:39 ` Karthik Nayak
2015-08-26 9:02 ` Matthieu Moy
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=vpqvbc3t9no.fsf@anie.imag.fr \
--to=matthieu.moy@grenoble-inp$(echo .)fr \
--cc=christian.couder@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=karthik.188@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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