From 54d8080112bdd85018bb99fd764899d87bad7ac6 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Sat, 19 Dec 2020 13:10:51 +0100 Subject: [PATCH] git-mr-comment-list: allow limit comments by author Signed-off-by: Frantisek Hrbata --- git-mr-comment-list | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 1.7.10.4