Re: [PATCH v3 1/7] repo: add path.toplevel with absolute and relative suffix formatting
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 27, 2026, 08:45 UTC
- Message-ID
- <xmqqh5lkq0qy.fsf@gitster.g>
- In-Reply-To
- <20260726104343.16933-2-jayatheerthkulkarni2005@gmail.com>
K Jayatheerth <jayatheerthkulkarni2005@gmail.com> writes:
Show 12 quoted lines
> +static int get_path_toplevel_absolute(struct repository *repo, struct strbuf *buf)
> +{
> + const char *work_tree = repo_get_work_tree(repo);
> +
> + if (!work_tree) {
> + strbuf_addstr(buf, "");
> + return 0;
> + }
> +
> + format_path(buf, work_tree, startup_info->prefix, PATH_FORMAT_CANONICAL);
> + return 0;
> +}I can manage to wiggle it in, of course, but I thought we lost the '.prefix' member from 'startup_info' in the recent tip of 'master'. As the topic is not targeting 'maint' as a bugfix, perhaps we want to use a more up-to-date 'master' as the base of the topic?
Thanks.