blob: 3f7e9aabcaef4b1ff2e5a5122cbea8bc97a6b7d5 [file] [log] [blame]
Daniel Barkalow552bcac2008-02-25 18:24:14 -05001#ifndef SHORTLOG_H
2#define SHORTLOG_H
3
Johannes Schindelinc455c872008-07-21 19:03:49 +01004#include "string-list.h"
Daniel Barkalow552bcac2008-02-25 18:24:14 -05005
Elijah Newrenef3ca952018-08-15 10:54:05 -07006struct commit;
7
Daniel Barkalow552bcac2008-02-25 18:24:14 -05008struct shortlog {
Johannes Schindelinc455c872008-07-21 19:03:49 +01009 struct string_list list;
Daniel Barkalow552bcac2008-02-25 18:24:14 -050010 int summary;
11 int wrap_lines;
12 int sort_by_number;
13 int wrap;
14 int in1;
15 int in2;
Johannes Schindelinb526f8e2008-07-14 19:08:52 +010016 int user_format;
Will Palmerc1977022010-05-03 22:18:57 -050017 int abbrev;
Jeff King92338c42020-09-27 04:39:59 -040018
19 enum {
Jeff King63d24fa2020-09-27 04:40:15 -040020 SHORTLOG_GROUP_AUTHOR = (1 << 0),
21 SHORTLOG_GROUP_COMMITTER = (1 << 1),
22 SHORTLOG_GROUP_TRAILER = (1 << 2),
23 } groups;
24 struct string_list trailers;
Daniel Barkalow552bcac2008-02-25 18:24:14 -050025
Daniel Barkalow552bcac2008-02-25 18:24:14 -050026 int email;
Johannes Schindelinc455c872008-07-21 19:03:49 +010027 struct string_list mailmap;
Johannes Schindelin0a7b3572016-06-22 17:01:49 +020028 FILE *file;
Daniel Barkalow552bcac2008-02-25 18:24:14 -050029};
30
31void shortlog_init(struct shortlog *log);
32
33void shortlog_add_commit(struct shortlog *log, struct commit *commit);
34
35void shortlog_output(struct shortlog *log);
36
37#endif