On Wednesday 2007 September 26, Jeff King wrote:
would be more flexible. Although perhaps that is a bit too unlikely to
be concerned with implementing, giving options to substitutions seems
like a sane way to implement these sorts of things (e.g.,
"%(objectsize:human)", "%(parent:1)", etc).
I'd thought about doing it like that, but imagined that there would objections
that it was overcomplicating git-for-each-ref. As you think that's
acceptable, I'll do it.
Surely this same code exists elsewhere, and could be easily factored out
into a parse_date_type function.
It was. It was also in revisions.c.
A patch series that implements both your requested changes to follow.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com