]>
Commit | Line | Data |
---|---|---|
552bcac3 DB |
1 | #ifndef SHORTLOG_H |
2 | #define SHORTLOG_H | |
3 | ||
c455c87c | 4 | #include "string-list.h" |
251554c2 | 5 | #include "date.h" |
552bcac3 | 6 | |
ef3ca954 EN |
7 | struct commit; |
8 | ||
552bcac3 | 9 | struct shortlog { |
c455c87c | 10 | struct string_list list; |
552bcac3 DB |
11 | int summary; |
12 | int wrap_lines; | |
13 | int sort_by_number; | |
14 | int wrap; | |
15 | int in1; | |
16 | int in2; | |
b526f8ed | 17 | int user_format; |
c1977021 | 18 | int abbrev; |
251554c2 | 19 | struct date_mode date_mode; |
92338c45 JK |
20 | |
21 | enum { | |
63d24fa0 JK |
22 | SHORTLOG_GROUP_AUTHOR = (1 << 0), |
23 | SHORTLOG_GROUP_COMMITTER = (1 << 1), | |
24 | SHORTLOG_GROUP_TRAILER = (1 << 2), | |
3dc95e09 | 25 | SHORTLOG_GROUP_FORMAT = (1 << 3), |
63d24fa0 JK |
26 | } groups; |
27 | struct string_list trailers; | |
3dc95e09 | 28 | struct string_list format; |
552bcac3 | 29 | |
552bcac3 | 30 | int email; |
c455c87c | 31 | struct string_list mailmap; |
0a7b3577 | 32 | FILE *file; |
552bcac3 DB |
33 | }; |
34 | ||
35 | void shortlog_init(struct shortlog *log); | |
10538e2a | 36 | void shortlog_finish_setup(struct shortlog *log); |
552bcac3 DB |
37 | |
38 | void shortlog_add_commit(struct shortlog *log, struct commit *commit); | |
39 | ||
40 | void shortlog_output(struct shortlog *log); | |
41 | ||
42 | #endif |