@@ -151,9 +151,8 @@ static int each_reflog(struct object_id *old_oid, struct object_id *new_oid,
const char *committer, timestamp_t timestamp,
int tz, const char *msg, void *cb_data)
{
- printf("%s %s %s %"PRItime" %d %s\n",
- oid_to_hex(old_oid), oid_to_hex(new_oid),
- committer, timestamp, tz, msg);
+ printf("%s %s %s %" PRItime " %+05d\t%s\n", oid_to_hex(old_oid),
+ oid_to_hex(new_oid), committer, timestamp, tz, msg);
return 0;
}
@@ -94,6 +94,7 @@ test_expect_success 'for_each_reflog_ent()' '
test_expect_success 'for_each_reflog_ent_reverse()' '
$RUN for-each-reflog-ent-reverse HEAD >actual &&
+ head -n1 actual | grep recreate-main &&
tail -n1 actual | grep one
'