blob: 50265f51c56431025b665abf34ac29fdce3d302b [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
Thomas Rast8f8f5472009-10-19 17:48:10 +02006struct reflog_walk_info;
7
Johannes Schindelin8860fd42007-01-11 11:47:48 +01008extern void init_reflog_walk(struct reflog_walk_info** info);
Johannes Schindelin7b69b872007-07-24 00:39:50 +01009extern int add_reflog_for_walk(struct reflog_walk_info *info,
Johannes Schindelin8860fd42007-01-11 11:47:48 +010010 struct commit *commit, const char *name);
11extern void fake_reflog_parent(struct reflog_walk_info *info,
12 struct commit *commit);
Jeff Kingcd437122009-03-20 02:00:43 -040013extern void show_reflog_message(struct reflog_walk_info *info, int,
Junio C Hamano55ccf852012-05-07 14:11:32 -070014 enum date_mode, int force_date);
Thomas Rast8f8f5472009-10-19 17:48:10 +020015extern void get_reflog_message(struct strbuf *sb,
16 struct reflog_walk_info *reflog_info);
Jeff Kingcd1957f2011-12-16 06:40:24 -050017extern const char *get_reflog_ident(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,
Junio C Hamano55ccf852012-05-07 14:11:32 -070020 enum date_mode dmode, int force_date,
Thomas Rast8f8f5472009-10-19 17:48:10 +020021 int shorten);
Johannes Schindelin8860fd42007-01-11 11:47:48 +010022
23#endif