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

Re: [RFC PATCH 1/1] for-each-ref: add '--no-symbolic' option

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 8, 2019, 15:40 UTC
Message-ID
<xmqq8sqyn6ek.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190908100543.GB15641@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> So in my mind there's an endgame we'd like to eventually reach where
> the option added by your patch isn't needed anymore. But we're a long
> way from that. And it's not entirely clear where we'd draw the line
> anyway.
All true and very good "thinking out loud".
> So in the meantime, this seems like a useful thing, and it
> wouldn't be a burden to carry it even if we eventually added
> "--omit=%(symref)" or something.
I would draw the line above this particular change, though.
Show 6 quoted lines
>> +--no-symbolic::
>> +	Only list refs that are not symbolic.
>> +
>
> I wonder if "symbolic" might be too vague here. Would "--no-symref" be a
> better name?

Definitely. Another disturbing thing is the design mistake that made this a bool. If it is useful to filter out symrefs, it would equally be useful to only show symrefs. --[no-]symbolic-refs does not capture the tristate-ness, and that is why I do not think this is good enough in the meantime, without causing us trouble carrying forward.

THanks.
Previous: Jeff KingNext: Junio C Hamano
Message 8 of 13 in “for-each-ref: Add '--no-symbolic' option”
  1. 0/1 for-each-ref: Add '--no-symbolic' optionEric Freese, Sep 7, 2019
  2. 1/1 for-each-ref: add '--no-symbolic' optionEric Freese, Sep 7, 2019
  3. Taylor BlauSep 7, 2019
  4. Taylor BlauSep 7, 2019
  5. Jeff KingSep 8, 2019
  6. Taylor BlauSep 7, 2019
  7. Jeff KingSep 8, 2019
  8. Junio C HamanoSep 8, 2019
  9. Junio C HamanoSep 8, 2019
  10. Eric FreeseSep 9, 2019
  11. Jeff KingSep 9, 2019
  12. Junio C HamanoSep 9, 2019
  13. Taylor BlauSep 7, 2019

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.