Merge branch 'ah/sequencer-rewrite-todo-fix'
[git.git] / shortlog.h
blob28d04f951af73d8f9bdf58f6100a5eb3fe51b72c
1 #ifndef SHORTLOG_H
2 #define SHORTLOG_H
4 #include "string-list.h"
5 #include "date.h"
7 struct commit;
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;
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;
30 int email;
31 struct string_list mailmap;
32 FILE *file;
35 void shortlog_init(struct shortlog *log);
36 void shortlog_finish_setup(struct shortlog *log);
38 void shortlog_add_commit(struct shortlog *log, struct commit *commit);
40 void shortlog_output(struct shortlog *log);
42 #endif