diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-07-19 17:53:22 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-19 14:32:34 -0700 |
commit | c510928a25c4f7432f785b5f212d8f053495ae74 (patch) | |
tree | 70b873d248b4ff736c1fc289b35fedfb3b7cd7eb /refs | |
parent | Git 2.32 (diff) | |
download | tgif-c510928a25c4f7432f785b5f212d8f053495ae74.tar.xz |
refs/debug: quote prefix
This makes the empty prefix ("") stand out better.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/refs/debug.c b/refs/debug.c index 7db4abccc3..1a7a9e11cf 100644 --- a/refs/debug.c +++ b/refs/debug.c @@ -232,7 +232,8 @@ debug_ref_iterator_begin(struct ref_store *ref_store, const char *prefix, struct debug_ref_iterator *diter = xcalloc(1, sizeof(*diter)); base_ref_iterator_init(&diter->base, &debug_ref_iterator_vtable, 1); diter->iter = res; - trace_printf_key(&trace_refs, "ref_iterator_begin: %s (0x%x)\n", prefix, flags); + trace_printf_key(&trace_refs, "ref_iterator_begin: \"%s\" (0x%x)\n", + prefix, flags); return &diter->base; } |