Re: [RFC 2/5] Pretty Print: show tz when using DATE_LOCAL
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 22, 2011, 15:06 UTC
- Message-ID
- <7vvcy6tjf1.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <08195d5d-bd90-49d3-a1a6-63be0d833110-mfwitten@gmail.com>
Michael Witten <mfwitten@gmail.com> writes:
Show 11 quoted lines
> Allow me to restate what I think you are saying: > > How about having [the still deprecated] --date=local (that is, DATE_LOCAL) > option produce the old behavior, but have every combination of date mode > options that does not involve DATE_LOCAL always emit the time zone. > > In other words, all of these do not emit a time zone: > > --date=local > --date=local --time-zone=local > --date=local --time-zone=default # --time-zone is ignored for simplicity.
Yeah. It is even plausible to extend --date further so that we can express things like
--date='%a %b %d %H:%M:%S %Y'
--date='%a %b %d %H:%M:%S %Y %z'The former would be equivalent to --date[-format]=local, the latter would be equivalent to --date[-format]=default.
Or something like that [warning: without morning caffeine yet] :-)