summaryrefslogtreecommitdiff
path: root/shortlog.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-09-27 08:40:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-27 19:21:05 (GMT)
commit47beb37bc60b690e83b19aa7ff646255fb643ad9 (patch)
tree1bc2159210728f20bd67ac51e01ae2e4f12b5340 /shortlog.h
parentf0939a0eb157cb23cd300d32ee0bff2f82aa5959 (diff)
downloadgit-47beb37bc60b690e83b19aa7ff646255fb643ad9.zip
git-47beb37bc60b690e83b19aa7ff646255fb643ad9.tar.gz
git-47beb37bc60b690e83b19aa7ff646255fb643ad9.tar.bz2
shortlog: match commit trailers with --group
If a project uses commit trailers, this patch lets you use shortlog to see who is performing each action. For example, running: git shortlog -ns --group=trailer:reviewed-by in git.git shows who has reviewed. You can even use a custom format to see things like who has helped whom: git shortlog --format="...helped %an (%ad)" \ --group=trailer:helped-by Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'shortlog.h')
-rw-r--r--shortlog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shortlog.h b/shortlog.h
index 876a521..89c2dbc 100644
--- a/shortlog.h
+++ b/shortlog.h
@@ -19,7 +19,9 @@ struct shortlog {
enum {
SHORTLOG_GROUP_AUTHOR = 0,
SHORTLOG_GROUP_COMMITTER,
+ SHORTLOG_GROUP_TRAILER,
} group;
+ char *trailer;
char *common_repo_prefix;
int email;