Merge branch 'jk/pretty-reglog-ent'
* jk/pretty-reglog-ent: pretty: give placeholders to reflog identity
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user