summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-07-28 13:18:03 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-07-28 13:18:04 -0700
commitaaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf (patch)
tree89f13be2840fc8d7052441d8f3640a6896a3d980 /refs
parentMerge branch 'pb/dont-complete-aliased-options' (diff)
parentrefs/debug: quote prefix (diff)
downloadtgif-aaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf.tar.xz
Merge branch 'hn/refs-debug-empty-prefix'
Debugging aid. * hn/refs-debug-empty-prefix: refs/debug: quote prefix
Diffstat (limited to 'refs')
-rw-r--r--refs/debug.c3
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;
}