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

Re: [PATCH 0/2] Use %as and %cs as pretty format flags

From
Avery Pennarun <apenwarr@gmail.com>
Date
Aug 29, 2008, 03:43 UTC
Message-ID
<32541b130808282043v5516e95ai49f928aeefb75fdd@mail.gmail.com>
In-Reply-To
<7viqtkd84s.fsf@gitster.siamese.dyndns.org>
On Thu, Aug 28, 2008 at 7:36 PM, Junio C Hamano <gitster@pobox.com> wrote:
> I was actually thinking about rejecting this, asking for something that
> allows to express all the other %[ai][dDri] format can express, and
> perhaps more.  So I think "%ad(short)" is a good direction to go, except
> that 'd' is already taken.  Perhaps %a(date), %a(shortdate,local),...?

These format strings are getting increasingly complicated without really gaining much in generality. Why not "%ad(strftime-compatible-format-string)" ? You could differentiate localtime vs. gmtime with %ad vs. %aD, or something like that.

Have fun,
Avery
Previous: Jakub Narebski
Message 9 of 9 in “Use %as and %cs as pretty format flags”
  1. 0/2 Use %as and %cs as pretty format flagsNathan Panike, Aug 28, 2008
  2. Jeff KingAug 28, 2008
  3. Junio C HamanoAug 28, 2008
  4. Jeff KingAug 28, 2008
  5. Nathan W. PanikeAug 29, 2008
  6. Jeff KingAug 29, 2008
  7. Junio C HamanoAug 29, 2008
  8. Jakub NarebskiAug 29, 2008
  9. Avery PennarunAug 29, 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.