Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 1 | #ifndef SHORTLOG_H |
| 2 | #define SHORTLOG_H |
| 3 | |
Johannes Schindelin | c455c87 | 2008-07-21 19:03:49 +0100 | [diff] [blame] | 4 | #include "string-list.h" |
Jeff King | 251554c | 2022-10-24 14:55:30 -0400 | [diff] [blame] | 5 | #include "date.h" |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 6 | |
Elijah Newren | ef3ca95 | 2018-08-15 10:54:05 -0700 | [diff] [blame] | 7 | struct commit; |
| 8 | |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 9 | struct shortlog { |
Johannes Schindelin | c455c87 | 2008-07-21 19:03:49 +0100 | [diff] [blame] | 10 | struct string_list list; |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 11 | int summary; |
| 12 | int wrap_lines; |
| 13 | int sort_by_number; |
| 14 | int wrap; |
| 15 | int in1; |
| 16 | int in2; |
Johannes Schindelin | b526f8e | 2008-07-14 19:08:52 +0100 | [diff] [blame] | 17 | int user_format; |
Will Palmer | c197702 | 2010-05-03 22:18:57 -0500 | [diff] [blame] | 18 | int abbrev; |
Jeff King | 251554c | 2022-10-24 14:55:30 -0400 | [diff] [blame] | 19 | struct date_mode date_mode; |
Jeff King | 92338c4 | 2020-09-27 04:39:59 -0400 | [diff] [blame] | 20 | |
| 21 | enum { |
Jeff King | 63d24fa | 2020-09-27 04:40:15 -0400 | [diff] [blame] | 22 | SHORTLOG_GROUP_AUTHOR = (1 << 0), |
| 23 | SHORTLOG_GROUP_COMMITTER = (1 << 1), |
| 24 | SHORTLOG_GROUP_TRAILER = (1 << 2), |
Taylor Blau | 3dc95e0 | 2022-10-24 14:55:39 -0400 | [diff] [blame] | 25 | SHORTLOG_GROUP_FORMAT = (1 << 3), |
Jeff King | 63d24fa | 2020-09-27 04:40:15 -0400 | [diff] [blame] | 26 | } groups; |
| 27 | struct string_list trailers; |
Taylor Blau | 3dc95e0 | 2022-10-24 14:55:39 -0400 | [diff] [blame] | 28 | struct string_list format; |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 29 | |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 30 | int email; |
Johannes Schindelin | c455c87 | 2008-07-21 19:03:49 +0100 | [diff] [blame] | 31 | struct string_list mailmap; |
Johannes Schindelin | 0a7b357 | 2016-06-22 17:01:49 +0200 | [diff] [blame] | 32 | FILE *file; |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | void shortlog_init(struct shortlog *log); |
Taylor Blau | 10538e2 | 2022-10-24 14:55:41 -0400 | [diff] [blame] | 36 | void shortlog_finish_setup(struct shortlog *log); |
Daniel Barkalow | 552bcac | 2008-02-25 18:24:14 -0500 | [diff] [blame] | 37 | |
| 38 | void shortlog_add_commit(struct shortlog *log, struct commit *commit); |
| 39 | |
| 40 | void shortlog_output(struct shortlog *log); |
| 41 | |
| 42 | #endif |