From: Frantisek Hrbata Date: Sat, 19 Dec 2020 12:10:51 +0000 (+0100) Subject: git-mr-comment-list: allow limit comments by author X-Git-Tag: v0.2~22 X-Git-Url: http://www.hrbata.com/gitweb/?a=commitdiff_plain;h=54d8080112bdd85018bb99fd764899d87bad7ac6;p=gimrr.git git-mr-comment-list: allow limit comments by author Signed-off-by: Frantisek Hrbata --- diff --git a/git-mr-comment-list b/git-mr-comment-list index b672d15..a6f7fff 100755 --- a/git-mr-comment-list +++ b/git-mr-comment-list @@ -43,6 +43,8 @@ parser.add_argument("--after", metavar="DATE", help="Limit the comments output to ones more recent than a specific date.") parser.add_argument("--before", metavar="DATE", help="Limit the comments output to ones older than a specific date.") +parser.add_argument("--author", metavar="PATTERN", action="append", + help="Limit the comments output to ones that were created by user matching PATTERN. Can be used multiple times.") class CFormatter(string.Formatter): def __init__(self): @@ -111,6 +113,10 @@ if args.after: if args.before: cmd += ["--before", args.before] +if args.author: + for pattern in args.author: + cmd += ["--author", pattern] + rv, out, err = mrlib.run(cmd, stdin=stdin) c2m = mrlib.comments2mrs(refs, mrs)