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

git-archive doesn't support --date= option for %ad & %cd format:<string>'s

From
Derek Moore <derek.p.moore@gmail.com>
Date
Oct 9, 2014, 16:19 UTC
Message-ID
<CAMsgyKaHoZtAidWKD_YTggt_Xo0J7krFKHr2eFeg3XJ6H0bBXQ@mail.gmail.com>

PRETTY FORMATS' format:<string> documentation says, "%ad: author date (format respects --date= option)", and similarly for %cd.

But git-archive does not support the --date= option for changing the date format in $Format:%ad$ or $Format:%cd$ substitution strings.

Relatedly, I want a short RFC date, not a short ISO date, but there is only --date=short, which is ISO.

Would introducing --date=shortrfc and --date=shortiso be feasable, with --date=short aliasing to --date=shortiso. With a shortrfc, I could recreate SVN $Date$'s, which would be equivalent to $Format:%ai (%ad)$ when used with "git archive --date=shortrfc".

Thanks,
Derek
Next: Jeff King
Message 1 of 4 in “git-archive doesn't support --date= option for %ad & %cd format:<string>'s”
  1. Derek MooreOct 9, 2014
  2. Jeff KingOct 9, 2014
  3. Jeff KingOct 9, 2014
  4. Derek MooreOct 9, 2014

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.