diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-15 09:39:48 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-15 09:39:49 -0800 |
commit | 250ca49b4f3ee0781a98c47f4515ae597ca3dbab (patch) | |
tree | 098f5771954d02fa7803fa51c5c803825f294cfa /t/helper | |
parent | Merge branch 'rj/receive-pack-avoid-sigpipe-during-status-reporting' (diff) | |
parent | refs/debug: trim trailing LF from reflog message (diff) | |
download | tgif-250ca49b4f3ee0781a98c47f4515ae597ca3dbab.tar.xz |
Merge branch 'hn/reflog-tests'
Prepare tests on ref API to help testing reftable backends.
* hn/reflog-tests:
refs/debug: trim trailing LF from reflog message
test-ref-store: tweaks to for-each-reflog-ent format
t1405: check for_each_reflog_ent_reverse() more thoroughly
test-ref-store: don't add newline to reflog message
show-branch: show reflog message
Diffstat (limited to 't/helper')
-rw-r--r-- | t/helper/test-ref-store.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 73461c29d3..971b755579 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -152,9 +152,9 @@ 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%s%s", oid_to_hex(old_oid), + oid_to_hex(new_oid), committer, timestamp, tz, + *msg == '\n' ? "" : "\t", msg); return 0; } |