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

[PATCH v2 0/6] reflog docs and date-formatting

From
Jeff King <peff@peff.net>
Date
Jul 22, 2016, 19:51 UTC
Message-ID
<20160722195105.GA19542@sigill.intra.peff.net>
This is a repost of the patches in:
  http://thread.gmane.org/gmane.comp.version-control.git/299201/focus=299236
since I don't think they got picked up at all.

The contents are the same, but with one extra patch (the 4th) that was posted mid-discussion.

The only other review comment is that patch 5 might want to editorialize the weirdness of "raw-local" more. I think I'm comfortable leaving it as-is based on my response in:

  http://article.gmane.org/gmane.comp.version-control.git/299312
but I could be persuaded otherwise.

The final patch, "--date=unix" doesn't _really_ solve Ted's problem, because there's still no way to give multiple date formats in the same line, nor use "%gd" as both the reflog index and as the date. So I'm assuming he'll still build "%gt" or similar on top of this, and only in the long run will we get to "%(reflog-date:unix)" or whatever.

So I think it's still valuable as a minor feature for other formatting needs, and as a potential building block for later. The earlier patches are all immediately useful as clarifications.

  [1/6]: doc/rev-list-options: clarify "commit@{Nth}" for "-g" option
  [2/6]: doc/rev-list-options: explain "-g" output formats
  [3/6]: doc/pretty-formats: describe index/time formats for %gd
  [4/6]: doc/pretty-formats: explain shortening of %gd
  [5/6]: date: document and test "raw-local" mode
  [6/6]: date: add "unix" format
-Peff
Next: Jeff King
Message 1 of 16 in “reflog docs and date-formatting”
  1. 0/6 reflog docs and date-formattingJeff King, Jul 22, 2016
  2. 1/6 doc/rev-list-options: clarify "commit@{Nth}" for "-g" optionJeff King, Jul 22, 2016
  3. 2/6 doc/rev-list-options: explain "-g" output formatsJeff King, Jul 22, 2016
  4. 3/6 doc/pretty-formats: describe index/time formats for %gdJeff King, Jul 22, 2016
  5. 4/6 doc/pretty-formats: explain shortening of %gdJeff King, Jul 22, 2016
  6. 5/6 date: document and test "raw-local" modeJeff King, Jul 22, 2016
  7. Jakub NarębskiJul 23, 2016
  8. Jeff KingJul 26, 2016
  9. Jakub NarębskiJul 27, 2016
  10. 5/6 date: document and test "raw-local" modeJeff King, Jul 27, 2016
  11. Junio C HamanoJul 27, 2016
  12. Jeff KingJul 27, 2016
  13. Junio C HamanoJul 27, 2016
  14. Jeff KingJul 27, 2016
  15. Junio C HamanoJul 27, 2016
  16. 6/6 date: add "unix" formatJeff King, Jul 22, 2016

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.