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; |
| 8 | |
David Aguilar | 24d36f1 | 2014-08-31 13:11:31 -0700 | [diff] [blame] | 9 | extern void init_reflog_walk(struct reflog_walk_info **info); |
Johannes Schindelin | 7b69b87 | 2007-07-24 00:39:50 +0100 | [diff] [blame] | 10 | extern int add_reflog_for_walk(struct reflog_walk_info *info, |
Johannes Schindelin | 8860fd4 | 2007-01-11 11:47:48 +0100 | [diff] [blame] | 11 | struct commit *commit, const char *name); |
Jeff King | cd43712 | 2009-03-20 02:00:43 -0400 | [diff] [blame] | 12 | extern void show_reflog_message(struct reflog_walk_info *info, int, |
Jeff King | a5481a6 | 2015-06-25 12:55:02 -0400 | [diff] [blame] | 13 | const struct date_mode *, int force_date); |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 14 | extern void get_reflog_message(struct strbuf *sb, |
| 15 | struct reflog_walk_info *reflog_info); |
Jeff King | cd1957f | 2011-12-16 06:40:24 -0500 | [diff] [blame] | 16 | extern const char *get_reflog_ident(struct reflog_walk_info *reflog_info); |
Jeff King | de23944 | 2017-07-07 05:16:21 -0400 | [diff] [blame] | 17 | extern timestamp_t get_reflog_timestamp(struct reflog_walk_info *reflog_info); |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 18 | extern void get_reflog_selector(struct strbuf *sb, |
| 19 | struct reflog_walk_info *reflog_info, |
Jeff King | a5481a6 | 2015-06-25 12:55:02 -0400 | [diff] [blame] | 20 | const struct date_mode *dmode, int force_date, |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 21 | int shorten); |
Johannes Schindelin | 8860fd4 | 2007-01-11 11:47:48 +0100 | [diff] [blame] | 22 | |
Jeff King | 7f97de5 | 2017-07-07 05:08:30 -0400 | [diff] [blame] | 23 | extern int reflog_walk_empty(struct reflog_walk_info *walk); |
| 24 | |
Jeff King | d08565b | 2017-07-07 05:14:07 -0400 | [diff] [blame] | 25 | struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info); |
| 26 | |
Johannes Schindelin | 8860fd4 | 2007-01-11 11:47:48 +0100 | [diff] [blame] | 27 | #endif |