@@ -242,7 +242,7 @@ void fake_reflog_parent(struct reflog_walk_info *info, struct commit *commit)
242242}
243243
244244void show_reflog_message (struct reflog_walk_info * info , int oneline ,
245- int relative_date )
245+ enum date_mode dmode )
246246{
247247 if (info && info -> last_commit_reflog ) {
248248 struct commit_reflog * commit_reflog = info -> last_commit_reflog ;
@@ -251,19 +251,21 @@ void show_reflog_message(struct reflog_walk_info* info, int oneline,
251251 info = & commit_reflog -> reflogs -> items [commit_reflog -> recno + 1 ];
252252 if (oneline ) {
253253 printf ("%s@{" , commit_reflog -> reflogs -> ref );
254- if (commit_reflog -> flag || relative_date )
255- printf ("%s" , show_date (info -> timestamp , 0 , 1 ));
254+ if (commit_reflog -> flag || dmode )
255+ printf ("%s" , show_date (info -> timestamp ,
256+ info -> tz ,
257+ dmode ));
256258 else
257259 printf ("%d" , commit_reflog -> reflogs -> nr
258260 - 2 - commit_reflog -> recno );
259261 printf ("}: %s" , info -> message );
260262 }
261263 else {
262264 printf ("Reflog: %s@{" , commit_reflog -> reflogs -> ref );
263- if (commit_reflog -> flag || relative_date )
265+ if (commit_reflog -> flag || dmode )
264266 printf ("%s" , show_date (info -> timestamp ,
265267 info -> tz ,
266- relative_date ));
268+ dmode ));
267269 else
268270 printf ("%d" , commit_reflog -> reflogs -> nr
269271 - 2 - commit_reflog -> recno );
0 commit comments