blob: cb3e73755d445b866ad51246dc8b1ea3ab6f1639 [file] [log] [blame]
Johannes Schindelin8860fd42007-01-11 11:47:48 +01001#ifndef REFLOG_WALK_H
2#define REFLOG_WALK_H
3
Jeff Kingcd437122009-03-20 02:00:43 -04004#include "cache.h"
5
Elijah Newrenef3ca952018-08-15 10:54:05 -07006struct commit;
Thomas Rast8f8f5472009-10-19 17:48:10 +02007struct reflog_walk_info;
8
David Aguilar24d36f12014-08-31 13:11:31 -07009extern void init_reflog_walk(struct reflog_walk_info **info);
Johannes Schindelin7b69b872007-07-24 00:39:50 +010010extern int add_reflog_for_walk(struct reflog_walk_info *info,
Johannes Schindelin8860fd42007-01-11 11:47:48 +010011 struct commit *commit, const char *name);
Jeff Kingcd437122009-03-20 02:00:43 -040012extern void show_reflog_message(struct reflog_walk_info *info, int,
Jeff Kinga5481a62015-06-25 12:55:02 -040013 const struct date_mode *, int force_date);
Thomas Rast8f8f5472009-10-19 17:48:10 +020014extern void get_reflog_message(struct strbuf *sb,
15 struct reflog_walk_info *reflog_info);
Jeff Kingcd1957f2011-12-16 06:40:24 -050016extern const char *get_reflog_ident(struct reflog_walk_info *reflog_info);
Jeff Kingde239442017-07-07 05:16:21 -040017extern timestamp_t get_reflog_timestamp(struct reflog_walk_info *reflog_info);
Thomas Rast8f8f5472009-10-19 17:48:10 +020018extern void get_reflog_selector(struct strbuf *sb,
19 struct reflog_walk_info *reflog_info,
Jeff Kinga5481a62015-06-25 12:55:02 -040020 const struct date_mode *dmode, int force_date,
Thomas Rast8f8f5472009-10-19 17:48:10 +020021 int shorten);
Johannes Schindelin8860fd42007-01-11 11:47:48 +010022
Jeff King7f97de52017-07-07 05:08:30 -040023extern int reflog_walk_empty(struct reflog_walk_info *walk);
24
Jeff Kingd08565b2017-07-07 05:14:07 -040025struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info);
26
Johannes Schindelin8860fd42007-01-11 11:47:48 +010027#endif