* [StGit PATCH] mail: add some commonly used tags to --auto
@ 2008-12-03 18:51 Dan Williams
0 siblings, 0 replies; only message in thread
From: Dan Williams @ 2008-12-03 18:51 UTC (permalink / raw)
To: catalin.marinas; +Cc: git
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
stgit/commands/mail.py | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py
index 72d0133..2dd88c3 100644
--- a/stgit/commands/mail.py
+++ b/stgit/commands/mail.py
@@ -283,8 +283,17 @@ def __get_signers_list(msg):
acked-by lines in the message.
"""
addr_list = []
-
- r = re.compile('^(signed-off-by|acked-by|cc):\s+(.+)$', re.I)
+ tags = '%s|%s|%s|%s|%s|%s|%s' % (
+ 'signed-off-by',
+ 'acked-by',
+ 'cc',
+ 'reviewed-by',
+ 'reported-by',
+ 'tested-by',
+ 'reported-and-tested-by')
+ regex = '^(%s):\s+(.+)$' % tags
+
+ r = re.compile(regex, re.I)
for line in msg.split('\n'):
m = r.match(line)
if m:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-03 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 18:51 [StGit PATCH] mail: add some commonly used tags to --auto Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).