Subject: [PATCH 4/6] do not discard const: declare const where we stay const

From: Michael J Gruber <[email-masked]>
Date: Thu, 26 Mar 2026 16:22:50 +0100

This may sound like the easiest case, but for non ISOC23 with non-const
strchr() this involves an implicit cast to const.
---
 convert.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/convert.c b/convert.c
index a34ec6ecdc..eae36c8a59 100644
--- a/convert.c
+++ b/convert.c
@@ -1168,7 +1168,8 @@ static int ident_to_worktree(const char *src, size_t len,
 			     struct strbuf *buf, int ident)
 {
 	struct object_id oid;
-	char *to_free = NULL, *dollar, *spc;
+	char *to_free = NULL;
+	const char *dollar, *spc;
 	int cnt;
 
 	if (!ident)
-- 
2.53.0.1195.g771ffcb452