From: Junio C Hamano <gitster@pobox.com>
To: Tim Friske <me@tifr.de>
Cc: git <git@vger.kernel.org>
Subject: Re: Why does "git log --author=<pattern>" not work with "regexp-ignore-case" and other regexp-related options?
Date: Sun, 19 Apr 2015 22:59:19 -0700 [thread overview]
Message-ID: <xmqqoamjmjbc.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <55336775.2020000@tifr.de> (Tim Friske's message of "Sun, 19 Apr 2015 10:29:41 +0200")
Tim Friske <me@tifr.de> writes:
> I wonder why "git log --author=<pattern>" does not work with the
> "regexp-ignore-case" option and the other regexp-related options
> Wouldn't it be useful to make ...
I think the reason is because nobody bothered to make it so. That
does not necessarily say what you suggest is not useful, but if it
were so very much useful in the real world, perhaps somebody may
have already been motivated enough to make it so, and the fact that
it has not happened might be an indirect indication of its predicted
usefulness. I dunno.
In any case, I do not offhand see how it would _hurt_ if we added
such a feature. The only reason it may hurt existing users would be
that people may depend on the current behaviour, trusting that
exactly spelling --author=Tim option, when using case-ignoring
matching of --grep=<pattern> to find the <pattern> in the log string
filters out the other tim whose name is spelled with lowercase.
Your proposed new world order _will_ break such users. But I do not
think it is very likely to become a real-world issue.
Of course, if the implementation is done poorly, it _will_ hurt the
overall performance or maintainability and that would make such an
implementation unacceptable, but that is a separate matter---it does
not reject the feature, just a specific poor implementation.
So a patch to do so cleanly with proper tests is very much welcomed.
The same comment applies to your other "wouldn't it be wonderful if
-G<pattern> became case-insensitive with an option?" topic (but as I
already said, -S<string> is *not* -G<string> with --fixed-strings).
Thanks.
prev parent reply other threads:[~2015-04-20 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-19 8:29 Why does "git log --author=<pattern>" not work with "regexp-ignore-case" and other regexp-related options? Tim Friske
2015-04-20 5:59 ` Junio C Hamano [this message]
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=xmqqoamjmjbc.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=me@tifr.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.