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

Re: [PATCH 3/3] add '%d' pretty format specifier to show decoration

From
Jeff King <peff@peff.net>
Date
Sep 5, 2008, 00:37 UTC
Message-ID
<20080905003710.GA17731@coredump.intra.peff.net>
In-Reply-To
<7v7i9r1lnm.fsf@gitster.siamese.dyndns.org>
On Thu, Sep 04, 2008 at 05:28:13PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> > The whole series looks good to me, and I am happy if it is applied
> > as-is. The only question I might raise is whether we want to use "%d"
> > for this, or use something longer to anticipate a collision with other
> > "d" words (I think you mentioned "describe" at one point).
> 
> How about using "%d()" for this one, so that later enhancements can
> specify their features inside parentheses?

I am slightly opposed to that, just because it then is very inconsistent with the other formatting specifiers. I think it is worth introducing a new, consistent syntax, providing that syntax for all specifiers (e.g., %(body), %(decorate)), and then saying "the existing %b, %d, et al are still available and will be available forever. BUT they will never grow the more interesting features like %(body:wrap=80) or %(decorate:delim=, ).

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 15 of 23 in “add '%d' pretty format specifier to show decoration”
  1. 1/2 add '%d' pretty format specifier to show decorationMichael Dressel, Sep 3, 2008
  2. Jeff KingSep 3, 2008
  3. Junio C HamanoSep 3, 2008
  4. Jeff KingSep 3, 2008
  5. Junio C HamanoSep 3, 2008
  6. Jeff KingSep 3, 2008
  7. René ScharfeSep 3, 2008
  8. Jeff KingSep 4, 2008
  9. René ScharfeSep 4, 2008
  10. 1/3 log: add load_ref_decorations()René Scharfe, Sep 4, 2008
  11. 2/3 move load_ref_decorations() to log-tree.c and export itRené Scharfe, Sep 4, 2008
  12. 3/3 add '%d' pretty format specifier to show decorationRené Scharfe, Sep 4, 2008
  13. Jeff KingSep 5, 2008
  14. Junio C HamanoSep 5, 2008
  15. Jeff KingSep 5, 2008
  16. Junio C HamanoSep 5, 2008
  17. Michael DresselSep 5, 2008
  18. Michael DresselSep 9, 2008
  19. René ScharfeSep 9, 2008
  20. René ScharfeSep 5, 2008
  21. Jeff KingSep 3, 2008
  22. Michael DresselSep 3, 2008
  23. Jeff KingSep 3, 2008

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.