ruby: add simpler option parser
[git] / shortlog.h
1 #ifndef SHORTLOG_H
2 #define SHORTLOG_H
3
4 #include "string-list.h"
5
6 #define DEFAULT_WRAPLEN 76
7 #define DEFAULT_INDENT1 6
8 #define DEFAULT_INDENT2 9
9
10 struct shortlog {
11         struct string_list list;
12         int summary;
13         int wrap_lines;
14         int sort_by_number;
15         int wrap;
16         int in1;
17         int in2;
18         int user_format;
19         int abbrev;
20
21         char *common_repo_prefix;
22         int email;
23         struct string_list mailmap;
24 };
25
26 struct commit;
27
28 void shortlog_init(struct shortlog *log);
29
30 void shortlog_add_commit(struct shortlog *log, struct commit *commit);
31
32 void shortlog_insert_one_record(struct shortlog *log, const char *author, const char *oneline);
33
34 void shortlog_output(struct shortlog *log);
35
36 #endif