From: Jay Soffian <jaysoffian@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>, Miles Bader <miles@gnu.org>,
git@vger.kernel.org
Subject: Re: orthogonal cases of log --date option
Date: Thu, 5 Mar 2009 16:04:44 -0500 [thread overview]
Message-ID: <76718490903051304j6d8138f7qa5492ac15edd6460@mail.gmail.com> (raw)
In-Reply-To: <20090305104304.GA17760@coredump.intra.peff.net>
On Thu, Mar 5, 2009 at 5:43 AM, Jeff King <peff@peff.net> wrote:
>> But this patch may help you get started.
>
> FWIW, I think this is the wrong direction. You are working around the
> lack of orthogonality in the interface by tweaking things in the
> implementation. I think you are better to fix the interface, but support
> --date=local for historical reasons. IOW,
>
> git log --local-dates --date=short
>
> with
>
> git log --date=local
>
> as a historical synonym for
>
> git log --local-dates --date=default
>
> This makes the interface simpler to understand: --date remains a
> selector, and --date=local is a special case that new people don't need
> to think about or understand.
I started to pick this up and I want to clarify what you meant by
interface. Was it the CLI you had an issue with? Because that I
understand and it's easy to support the CLI changes you outline above.
Or did you have a problem with how Junio was going about passing along
both bits (i.e. 1. date format; 2. local or not) in an enum? Because I
have to tell you, I started looking at what it would take to switch
the enum to something like:
struct date_mode {
enum {
DATE_NORMAL = 0,
DATE_RELATIVE,
DATE_SHORT,
DATE_ISO8601,
DATE_RFC2822,
DATE_RAW
} format;
unsigned int local;
};
It's a significantly more invasive change.
j.
next prev parent reply other threads:[~2009-03-05 21:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 8:18 orthogonal cases of log --date option Miles Bader
2009-03-03 8:34 ` Jeff King
2009-03-03 8:45 ` Junio C Hamano
2009-03-05 10:43 ` Jeff King
2009-03-05 21:04 ` Jay Soffian [this message]
2009-03-05 21:11 ` Jeff King
2009-03-05 22:21 ` Junio C Hamano
2009-03-06 5:23 ` Jeff King
2009-03-06 6:50 ` Junio C Hamano
2009-03-06 6:58 ` Jay Soffian
2009-03-06 8:02 ` Junio C Hamano
2009-03-06 8:31 ` Jay Soffian
2009-03-06 8:58 ` Junio C Hamano
2009-03-06 12:12 ` Jeff King
2009-03-06 12:10 ` Jeff King
2009-03-06 12:09 ` Jeff King
2009-03-06 1:47 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76718490903051304j6d8138f7qa5492ac15edd6460@mail.gmail.com \
--to=jaysoffian@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=miles@gnu.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).