summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-22 06:18:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-22 08:38:26 (GMT)
commite5633cbb8577b430f175f62cf4e7ed53f2434a89 (patch)
tree342e2251e9403fa221ef4c29c0076710685126ce /revision.c
parent98ec4ad7f908a6df8c2d4eedf309c06fe840c5c3 (diff)
downloadgit-e5633cbb8577b430f175f62cf4e7ed53f2434a89.zip
git-e5633cbb8577b430f175f62cf4e7ed53f2434a89.tar.gz
git-e5633cbb8577b430f175f62cf4e7ed53f2434a89.tar.bz2
Synonyms: -i == --regexp-ignore-case, -E == --extended-regexp
These options to log family were too long to type. Give them shorter synonyms. Fix the parsing of the long options while at it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/revision.c b/revision.c
index 7036cf2..00b75bc 100644
--- a/revision.c
+++ b/revision.c
@@ -1165,11 +1165,13 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
add_message_grep(revs, arg+7);
continue;
}
- if (!prefixcmp(arg, "--extended-regexp")) {
+ if (!strcmp(arg, "--extended-regexp") ||
+ !strcmp(arg, "-E")) {
regflags |= REG_EXTENDED;
continue;
}
- if (!prefixcmp(arg, "--regexp-ignore-case")) {
+ if (!strcmp(arg, "--regexp-ignore-case") ||
+ !strcmp(arg, "-i")) {
regflags |= REG_ICASE;
continue;
}