Commit | Line | Data |
---|---|---|
8860fd42 JS |
1 | #ifndef REFLOG_WALK_H |
2 | #define REFLOG_WALK_H | |
3 | ||
cd437120 JK |
4 | #include "cache.h" |
5 | ||
8f8f5476 TR |
6 | struct reflog_walk_info; |
7 | ||
24d36f14 | 8 | extern void init_reflog_walk(struct reflog_walk_info **info); |
7b69b873 | 9 | extern int add_reflog_for_walk(struct reflog_walk_info *info, |
8860fd42 | 10 | struct commit *commit, const char *name); |
cd437120 | 11 | extern void show_reflog_message(struct reflog_walk_info *info, int, |
a5481a6c | 12 | const struct date_mode *, int force_date); |
8f8f5476 TR |
13 | extern void get_reflog_message(struct strbuf *sb, |
14 | struct reflog_walk_info *reflog_info); | |
cd1957f5 | 15 | extern const char *get_reflog_ident(struct reflog_walk_info *reflog_info); |
de239446 | 16 | extern timestamp_t get_reflog_timestamp(struct reflog_walk_info *reflog_info); |
8f8f5476 TR |
17 | extern void get_reflog_selector(struct strbuf *sb, |
18 | struct reflog_walk_info *reflog_info, | |
a5481a6c | 19 | const struct date_mode *dmode, int force_date, |
8f8f5476 | 20 | int shorten); |
8860fd42 | 21 | |
7f97de5e JK |
22 | extern int reflog_walk_empty(struct reflog_walk_info *walk); |
23 | ||
d08565bf JK |
24 | struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info); |
25 | ||
8860fd42 | 26 | #endif |