{"thread":{"id":"56127","subject":"[PATCH] refs/debug: quote prefix","startedAt":"2021-07-19T18:02:44Z","lastAt":"2021-07-19T18:02:44Z","messageCount":1,"participants":["Han-Wen Nienhuys via GitGitGadget"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"430526","messageId":"pull.1053.git.git.1626717202616.gitgitgadget@gmail.com","threadId":"56127","inReplyTo":null,"subject":"[PATCH] refs/debug: quote prefix","fromName":"Han-Wen Nienhuys via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2021-07-19T17:53:22Z","receivedAt":"2021-07-19T18:02:44Z","isPatch":true,"sender":{"key":"hanwen@google.com","avatar":"https://avatars.githubusercontent.com/u/31547?v=4"},"body":"From: Han-Wen Nienhuys <hanwen@google.com>\n\nThis makes the empty prefix (\"\") stand out better.\n\nSigned-off-by: Han-Wen Nienhuys <hanwen@google.com>\n---\n    refs/debug: quote prefix\n    \n    This makes the empty prefix (\"\") stand out better.\n    \n    Signed-off-by: Han-Wen Nienhuys hanwen@google.com\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1053%2Fhanwen%2Fquote-prefix-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1053/hanwen/quote-prefix-v1\nPull-Request: https://github.com/git/git/pull/1053\n\n refs/debug.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\ndiff --git a/refs/debug.c b/refs/debug.c\nindex 7db4abccc34..1a7a9e11cfa 100644\n--- a/refs/debug.c\n+++ b/refs/debug.c\n@@ -232,7 +232,8 @@ debug_ref_iterator_begin(struct ref_store *ref_store, const char *prefix,\n \tstruct debug_ref_iterator *diter = xcalloc(1, sizeof(*diter));\n \tbase_ref_iterator_init(&diter->base, &debug_ref_iterator_vtable, 1);\n \tditer->iter = res;\n-\ttrace_printf_key(&trace_refs, \"ref_iterator_begin: %s (0x%x)\\n\", prefix, flags);\n+\ttrace_printf_key(&trace_refs, \"ref_iterator_begin: \\\"%s\\\" (0x%x)\\n\",\n+\t\t\t prefix, flags);\n \treturn &diter->base;\n }\n \n\nbase-commit: 75ae10bc75336db031ee58d13c5037b929235912\n-- \ngitgitgadget\n"}]}