blob: f26408f6cc1caffd93949ebc95d74426c2a9db25 [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
Denton Liu55454422019-04-29 04:28:14 -04009void init_reflog_walk(struct reflog_walk_info **info);
10int add_reflog_for_walk(struct reflog_walk_info *info,
Denton Liuad6dad02019-04-29 04:28:23 -040011 struct commit *commit, const char *name);
Denton Liu55454422019-04-29 04:28:14 -040012void show_reflog_message(struct reflog_walk_info *info, int,
Denton Liuad6dad02019-04-29 04:28:23 -040013 const struct date_mode *, int force_date);
Denton Liu55454422019-04-29 04:28:14 -040014void get_reflog_message(struct strbuf *sb,
Denton Liuad6dad02019-04-29 04:28:23 -040015 struct reflog_walk_info *reflog_info);
Denton Liu55454422019-04-29 04:28:14 -040016const char *get_reflog_ident(struct reflog_walk_info *reflog_info);
17timestamp_t get_reflog_timestamp(struct reflog_walk_info *reflog_info);
18void get_reflog_selector(struct strbuf *sb,
Denton Liuad6dad02019-04-29 04:28:23 -040019 struct reflog_walk_info *reflog_info,
20 const struct date_mode *dmode, int force_date,
21 int shorten);
Johannes Schindelin8860fd42007-01-11 11:47:48 +010022
Denton Liu55454422019-04-29 04:28:14 -040023int reflog_walk_empty(struct reflog_walk_info *walk);
Jeff King7f97de52017-07-07 05:08:30 -040024
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