]>
Commit | Line | Data |
---|---|---|
8860fd42 JS |
1 | #ifndef REFLOG_WALK_H |
2 | #define REFLOG_WALK_H | |
3 | ||
cd437120 JK |
4 | #include "cache.h" |
5 | ||
ef3ca954 | 6 | struct commit; |
8f8f5476 | 7 | struct reflog_walk_info; |
88c7b4c3 | 8 | struct date_mode; |
8f8f5476 | 9 | |
55454427 | 10 | void init_reflog_walk(struct reflog_walk_info **info); |
81ffbf83 | 11 | void reflog_walk_info_release(struct reflog_walk_info *info); |
55454427 | 12 | int add_reflog_for_walk(struct reflog_walk_info *info, |
ad6dad09 | 13 | struct commit *commit, const char *name); |
55454427 | 14 | void show_reflog_message(struct reflog_walk_info *info, int, |
ad6dad09 | 15 | const struct date_mode *, int force_date); |
55454427 | 16 | void get_reflog_message(struct strbuf *sb, |
ad6dad09 | 17 | struct reflog_walk_info *reflog_info); |
55454427 DL |
18 | const char *get_reflog_ident(struct reflog_walk_info *reflog_info); |
19 | timestamp_t get_reflog_timestamp(struct reflog_walk_info *reflog_info); | |
20 | void get_reflog_selector(struct strbuf *sb, | |
ad6dad09 DL |
21 | struct reflog_walk_info *reflog_info, |
22 | const struct date_mode *dmode, int force_date, | |
23 | int shorten); | |
8860fd42 | 24 | |
55454427 | 25 | int reflog_walk_empty(struct reflog_walk_info *walk); |
7f97de5e | 26 | |
d08565bf JK |
27 | struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info); |
28 | ||
8860fd42 | 29 | #endif |