From: "Dmitry Kakurin" <dmitry.kakurin@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] Added 'git-rev-list --igrep' option for case insensitive grep
Date: Sat, 21 Jul 2007 22:33:47 -0700 [thread overview]
Message-ID: <a1bbc6950707212233h6047ecfas645b71b9b4c6317e@mail.gmail.com> (raw)
>From 4b16e1823875f0051e3f0590803ab67dd3ca341d Mon Sep 17 00:00:00 2001
From: Dmitry Kakurin <Dmitry.Kakurin@gmail.com>
Date: Sat, 21 Jul 2007 22:22:49 -0700
Subject: [PATCH] Added 'git-rev-list --igrep' option for case insensitive grep
---
Documentation/git-rev-list.txt | 6 +++++-
revision.c | 5 +++++
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt
index 08e7573..f427862 100644
--- a/Documentation/git-rev-list.txt
+++ b/Documentation/git-rev-list.txt
@@ -26,7 +26,7 @@ SYNOPSIS
[ \--left-right ]
[ \--cherry-pick ]
[ \--encoding[=<encoding>] ]
- [ \--(author|committer|grep)=<pattern> ]
+ [ \--(author|committer|grep|igrep)=<pattern> ]
[ \--regexp-ignore-case ] [ \--extended-regexp ]
[ \--date={local|relative|default|iso|rfc|short} ]
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
@@ -227,6 +227,10 @@ limiting may be applied.
Limit the commits output to ones with log message that
matches the specified pattern (regular expression).
+--igrep='pattern'::
+
+ Equivalent to --grep='pattern' --regexp-ignore-case.
+
--regexp-ignore-case::
Match the regexp limiting patterns without regard to letters case.
diff --git a/revision.c b/revision.c
index 28b5f2e..d5e1e69 100644
--- a/revision.c
+++ b/revision.c
@@ -1165,6 +1165,11 @@ int setup_revisions(int argc, const char
**argv, struct rev_info *revs, const ch
add_message_grep(revs, arg+7);
continue;
}
+ if (!prefixcmp(arg, "--igrep=")) {
+ add_message_grep(revs, arg+8);
+ regflags |= REG_ICASE;
+ continue;
+ }
if (!prefixcmp(arg, "--extended-regexp")) {
regflags |= REG_EXTENDED;
continue;
--
1.5.2.3
next reply other threads:[~2007-07-22 5:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-22 5:33 Dmitry Kakurin [this message]
2007-07-22 5:53 ` [PATCH] Added 'git-rev-list --igrep' option for case insensitive grep Junio C Hamano
2007-07-22 6:17 ` Junio C Hamano
2007-07-22 7:52 ` Dmitry Kakurin
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=a1bbc6950707212233h6047ecfas645b71b9b4c6317e@mail.gmail.com \
--to=dmitry.kakurin@gmail.com \
--cc=git@vger.kernel.org \
/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).