Re: [PATCH] Add a --dateformat= option to git-for-each-ref
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Sep 28, 2007, 14:15 UTC
- Message-ID
- <200709281516.05438.andyparkins@gmail.com>
- In-Reply-To
- <20070926125811.GC13739@coredump.intra.peff.net>
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