From: Junio C Hamano Date: Thu, 26 Feb 2026 23:29:25 GMT Subject: Re: [PATCH v4 02/10] repo: add path keys to repo info Message-ID: In-Reply-To: <6d5b9ff07566e1cc28a672cf1f47988e9c8c45da.1772140487.git.gitgitgadget@gmail.com> "Eslam reda ragheb via GitGitGadget" writes: > From: Eslam reda ragheb > > 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.