Subject: Re: [PATCH v4 02/10] repo: add path keys to repo info

From: Junio C Hamano <[email-masked]>
Date: Thu, 26 Feb 2026 15:29:25 -0800

"Eslam reda ragheb via GitGitGadget" <[email-masked]>
writes:

> From: Eslam reda ragheb <[email-masked]>
>
> Add a path category to git repo info with key-value pairs that
> mirror repository paths users commonly retrieve via rev-parse and
> git-path lookups.
> ...
> +static int get_path_git_prefix(struct repo_info *info, struct strbuf *buf)
> +{
> +	if (info->prefix)
> +		strbuf_addstr(buf, info->prefix);
> +	return 0;
> +}

Can (info->prefix && info->prefix[0] == '\0') be possible?  If so,
"repo info path.git-prefix" would not be able to help users who want
to know between (info->prefix == NULL) and info->prefix being an
empty string.