[PATCH 0/3] localized date format
- From
Jeff King <peff@peff.net>
- Date
- Jun 25, 2015, 16:53 UTC
- Message-ID
- <20150625165341.GA21949@peff.net>
- In-Reply-To
- <20150625145659.09285538@pc09.procura.nl>
On Thu, Jun 25, 2015 at 02:56:59PM +0200, H.Merijn Brand wrote:
Show 12 quoted lines
> > That being said, I do not think it would be wrong to have a date-mode
> > that just showed strftime("%c"), or some other arbitrary strftime
> > string. You could then set log.date as appropriate for human
> > consumption.
>
> Yes please :)
>
> --date=lc
> --date=lc_time
> --date=locale
>
> all spring to mind as valid optionsHere's a patch series that allows `--date=format:%c`, which is the same thing. We could possibly do `--date=locale` as syntactic sugar, I guess.
[1/3]: show-branch: use DATE_RELATIVE instead of magic number [2/3]: convert "enum date_mode" into a struct [3/3]: introduce "format" date-mode
-Peff