From: Eric Sunshine <sunshine@sunshineco.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git List <git@vger.kernel.org>, Duy Nguyen <pclouds@gmail.com>,
Antoine Pelisse <apelisse@gmail.com>
Subject: Re: [PATCH v2 1/4] builtin: add git-check-mailmap command
Date: Fri, 12 Jul 2013 02:24:43 -0400 [thread overview]
Message-ID: <CAPig+cTwXe7rSKUgJPVHbAvrxYbmL77xNXtLyUeRnd8Taxtrdw@mail.gmail.com> (raw)
In-Reply-To: <7vbo68pbwm.fsf@alter.siamese.dyndns.org>
On Fri, Jul 12, 2013 at 1:47 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Eric Sunshine <sunshine@sunshineco.com> writes:
>
>>> For each contact information (either in the form of ``Name
>>> <user@host>'' or ...)
>>>
>>> in order to clarify that the two forms of input is what you call
>>> "contact information".
>>
>> Is this easier to read?
>>
>> For each ``Name $$<user@host>$$'' or ``$$<user@host>$$'' from the
>> command-line or standard input (when using `--stdin`), print a line
>> showing either the canonical name and email address (see "Mapping
>> Authors" below), or the input ``Name $$<user@host>$$'' or
>> ``$$<user@host>$$'' if there is no mapping for that person.
>
> I find it easier than your original, but I do not know if you would
> want to repeat the "Name... or <user@host>" at the end. It does not
> seem to add much useful information and is distracting.
Next attempt:
For each ``Name $$<user@host>$$'' or ``$$<user@host>$$'' from the
command-line or standard input (when using `--stdin`) look up the
person's canonical name and email address (see "Mapping Authors"
below). If found, print them; otherwise print the input as-is.
>> In check-attr, null_term_line indicates that _input_ lines are
>> null-terminated. In check-ignore, null_term_lines is overloaded (and
>> perhaps abused) to mean that both _input_ and _output_ lines are
>> null-terminated.
>
> That is unfortunate but it is good that you found the breakage. As
> we do not have --nul-terminated-input and --nul-terminated-output
> options separtely, -z should apply to both input and output. What
> b4666852 (check-attr: Add --stdin option, 2008-10-07) did is broken.
I can make git-check-mailmap behave this way, however, other than
git-check-ignore (which is quite new), there doesn't seem to be any
precedence (that I can find) anywhere else in git which ties input and
output null-termination to a single switch. Is it desirable to do so
or should the user have more fine-grained control? ("xargs -0" comes
to mind when thinking of a null-termination input switch.)
> Also "git check-ignore -h" advertises "-z" as only affecting "--stdin",
> which is also wrong. It does affect both input and output as it should,
> so it should be described as such, I think.
I also noticed this. (It was copied from check-attr.c).
next prev parent reply other threads:[~2013-07-12 6:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-11 14:55 [PATCH v2 0/4] add git-check-mailmap command Eric Sunshine
2013-07-11 14:55 ` [PATCH v2 1/4] builtin: " Eric Sunshine
2013-07-11 19:04 ` Junio C Hamano
2013-07-12 3:28 ` Eric Sunshine
2013-07-12 5:47 ` Junio C Hamano
2013-07-12 6:24 ` Eric Sunshine [this message]
2013-07-12 6:34 ` Junio C Hamano
2013-07-12 6:39 ` Eric Sunshine
2013-07-11 14:55 ` [PATCH v2 2/4] t4203: test check-mailmap command invocation Eric Sunshine
2013-07-11 14:55 ` [PATCH v2 3/4] t4203: test mailmap functionality directly rather than indirectly Eric Sunshine
2013-07-11 19:07 ` Junio C Hamano
2013-07-12 0:35 ` Eric Sunshine
2013-07-12 0:55 ` Jonathan Nieder
2013-07-12 2:37 ` Eric Sunshine
2013-07-12 5:48 ` Junio C Hamano
2013-07-12 6:05 ` Eric Sunshine
2013-07-12 6:25 ` Junio C Hamano
2013-07-11 14:55 ` [PATCH v2 4/4] t4203: consolidate test-repository setup Eric Sunshine
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=CAPig+cTwXe7rSKUgJPVHbAvrxYbmL77xNXtLyUeRnd8Taxtrdw@mail.gmail.com \
--to=sunshine@sunshineco.com \
--cc=apelisse@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
/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).