git-mr-comment-list: allow extended regexp
authorFrantisek Hrbata <frantisek@hrbata.com>
Sat, 19 Dec 2020 12:16:22 +0000 (13:16 +0100)
committerFrantisek Hrbata <frantisek@hrbata.com>
Sat, 19 Dec 2020 12:16:22 +0000 (13:16 +0100)
Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
git-mr-comment-list

index a6f7fff78998bdd270ebc2e29f1327a61578346c..7d86daa28550f277324ad342e72c59f0de0287fa 100755 (executable)
@@ -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)