X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=reflog-walk.c;h=86d18843f52046d87741bffa9f865ec973a2ae73;hb=471dcfdbb23ad423168d928335bc36217f9e311d;hp=64c677fc49d7874736221b1828f96d8652cb1fb3;hpb=200888ef3bbc150cc20b99e0aa039c751c00e07a;p=git.git diff --git a/reflog-walk.c b/reflog-walk.c index 64c677fc4..86d18843f 100644 --- a/reflog-walk.c +++ b/reflog-walk.c @@ -295,6 +295,18 @@ void get_reflog_message(struct strbuf *sb, strbuf_add(sb, info->message, len); } +const char *get_reflog_ident(struct reflog_walk_info *reflog_info) +{ + struct commit_reflog *commit_reflog = reflog_info->last_commit_reflog; + struct reflog_info *info; + + if (!commit_reflog) + return NULL; + + info = &commit_reflog->reflogs->items[commit_reflog->recno+1]; + return info->email; +} + void show_reflog_message(struct reflog_walk_info *reflog_info, int oneline, enum date_mode dmode) {