]> git.ipfire.org Git - thirdparty/git.git/blob - shortlog.h
Merge branch 'rj/add-i-leak-fix'
[thirdparty/git.git] / shortlog.h
1 #ifndef SHORTLOG_H
2 #define SHORTLOG_H
3
4 #include "string-list.h"
5 #include "date.h"
6
7 struct commit;
8
9 struct shortlog {
10 struct string_list list;
11 int summary;
12 int wrap_lines;
13 int sort_by_number;
14 int wrap;
15 int in1;
16 int in2;
17 int user_format;
18 int abbrev;
19 struct date_mode date_mode;
20
21 enum {
22 SHORTLOG_GROUP_AUTHOR = (1 << 0),
23 SHORTLOG_GROUP_COMMITTER = (1 << 1),
24 SHORTLOG_GROUP_TRAILER = (1 << 2),
25 SHORTLOG_GROUP_FORMAT = (1 << 3),
26 } groups;
27 struct string_list trailers;
28 struct string_list format;
29
30 int email;
31 struct string_list mailmap;
32 FILE *file;
33 };
34
35 void shortlog_init(struct shortlog *log);
36 void shortlog_finish_setup(struct shortlog *log);
37
38 void shortlog_add_commit(struct shortlog *log, struct commit *commit);
39
40 void shortlog_output(struct shortlog *log);
41
42 #endif