git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-archive doesn't support --date= option for %ad & %cd format:<string>'s
@ 2014-10-09 16:19 Derek Moore
  2014-10-09 19:24 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Derek Moore @ 2014-10-09 16:19 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-09 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 16:19 git-archive doesn't support --date= option for %ad & %cd format:<string>'s Derek Moore
2014-10-09 19:24 ` Jeff King
2014-10-09 19:27   ` Jeff King
2014-10-09 19:30   ` Derek Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).