Re: [PATCH 2/2] date: make "local" orthogonal to date format
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 2, 2015, 17:41 UTC
- Message-ID
- <xmqq37ywoh0x.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20150831204831.GB10338@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> + /* historical alias */
> + if (!strcmp(format, "local"))
> + format = "default-local";
> +
> + mode->type = parse_date_type(format, &p);
> + mode->local = 0;
> +
> + if (skip_prefix(p, "-local", &p)) {
> + if (mode->type == DATE_RELATIVE)
> + die("relative-local date format is nonsensical");
> + mode->local = 1;
> + }I notice that we give something funny like this:
$ git show --date=short-locale
fatal: unknown date-mode modifier: eWhat is the intention here? In other words, what kind of things can plausibly follow "--date=short-local" in enhanced versions of Git in the future? "--date=short-local:some other magic"?