From fcbdc4e4bfcacdbd1768838d2fc9b7c3d9c533e8 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Sat, 19 Dec 2020 13:16:22 +0100 Subject: [PATCH] git-mr-comment-list: allow extended regexp Signed-off-by: Frantisek Hrbata --- git-mr-comment-list | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-mr-comment-list b/git-mr-comment-list index a6f7fff..7d86daa 100755 --- a/git-mr-comment-list +++ b/git-mr-comment-list @@ -35,6 +35,8 @@ parser.add_argument("--all-match", action="store_true", help="Limit the comments output to ones that match all given --grep.") parser.add_argument("-i", "--regexp-ignore-case", action="store_true", help="Match the regular expression limiting patterns without regard to letter case.") +parser.add_argument("-E", "--extended-regexp", action="store_true", + help="Use extended regular expressions instead of the default basic regular expressions.") parser.add_argument("-r", "--read-revs", metavar="FILE", help="Read revs for previously read comments from FILE (default: $HOME/.gimrr/comment.revs).") parser.add_argument("-n", "--new-only", action="store_true", @@ -117,6 +119,9 @@ if args.author: for pattern in args.author: cmd += ["--author", pattern] +if args.extended_regexp: + cmd += ["--extended-regexp"] + rv, out, err = mrlib.run(cmd, stdin=stdin) c2m = mrlib.comments2mrs(refs, mrs) -- 1.7.10.4