Johannes Schindelin | 8860fd4 | 2007-01-11 11:47:48 +0100 | [diff] [blame] | 1 | #ifndef REFLOG_WALK_H |
| 2 | #define REFLOG_WALK_H |
| 3 | |
Jeff King | cd43712 | 2009-03-20 02:00:43 -0400 | [diff] [blame] | 4 | #include "cache.h" |
| 5 | |
Elijah Newren | ef3ca95 | 2018-08-15 10:54:05 -0700 | [diff] [blame] | 6 | struct commit; |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 7 | struct reflog_walk_info; |
Ævar Arnfjörð Bjarmason | 88c7b4c | 2022-02-16 09:14:02 +0100 | [diff] [blame] | 8 | struct date_mode; |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 9 | |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 10 | void init_reflog_walk(struct reflog_walk_info **info); |
Ævar Arnfjörð Bjarmason | 81ffbf8 | 2022-04-13 22:01:52 +0200 | [diff] [blame] | 11 | void reflog_walk_info_release(struct reflog_walk_info *info); |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 12 | int add_reflog_for_walk(struct reflog_walk_info *info, |
Denton Liu | ad6dad0 | 2019-04-29 04:28:23 -0400 | [diff] [blame] | 13 | struct commit *commit, const char *name); |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 14 | void show_reflog_message(struct reflog_walk_info *info, int, |
Denton Liu | ad6dad0 | 2019-04-29 04:28:23 -0400 | [diff] [blame] | 15 | const struct date_mode *, int force_date); |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 16 | void get_reflog_message(struct strbuf *sb, |
Denton Liu | ad6dad0 | 2019-04-29 04:28:23 -0400 | [diff] [blame] | 17 | struct reflog_walk_info *reflog_info); |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 18 | const char *get_reflog_ident(struct reflog_walk_info *reflog_info); |
| 19 | timestamp_t get_reflog_timestamp(struct reflog_walk_info *reflog_info); |
| 20 | void get_reflog_selector(struct strbuf *sb, |
Denton Liu | ad6dad0 | 2019-04-29 04:28:23 -0400 | [diff] [blame] | 21 | struct reflog_walk_info *reflog_info, |
| 22 | const struct date_mode *dmode, int force_date, |
| 23 | int shorten); |
Johannes Schindelin | 8860fd4 | 2007-01-11 11:47:48 +0100 | [diff] [blame] | 24 | |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 25 | int reflog_walk_empty(struct reflog_walk_info *walk); |
Jeff King | 7f97de5 | 2017-07-07 05:08:30 -0400 | [diff] [blame] | 26 | |
Jeff King | d08565b | 2017-07-07 05:14:07 -0400 | [diff] [blame] | 27 | struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info); |
| 28 | |
Johannes Schindelin | 8860fd4 | 2007-01-11 11:47:48 +0100 | [diff] [blame] | 29 | #endif |