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