From: Frantisek Hrbata Date: Sat, 19 Dec 2020 12:16:22 +0000 (+0100) Subject: git-mr-comment-list: allow extended regexp X-Git-Tag: v0.2~21 X-Git-Url: http://www.hrbata.com/gitweb/?a=commitdiff_plain;h=fcbdc4e4bfcacdbd1768838d2fc9b7c3d9c533e8;p=gimrr.git git-mr-comment-list: allow extended regexp Signed-off-by: Frantisek Hrbata --- 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)