diff options
author | Jeff King <peff@peff.net> | 2020-09-27 11:40:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-27 22:21:05 +0300 |
commit | 47beb37bc60b690e83b19aa7ff646255fb643ad9 (patch) | |
tree | 1bc2159210728f20bd67ac51e01ae2e4f12b5340 /shortlog.h | |
parent | f0939a0eb157cb23cd300d32ee0bff2f82aa5959 (diff) |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shortlog.h b/shortlog.h index 876a52158d..89c2dbc5e6 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; |