]> git.99rst.org Git - git.git/commit
setup: propagate prefix via repository discovery
authorPatrick Steinhardt <redacted>
Tue, 7 Jul 2026 07:21:28 +0000 (09:21 +0200)
committerJunio C Hamano <redacted>
Tue, 7 Jul 2026 17:49:41 +0000 (10:49 -0700)
commit0bf8e1464331c7d611a79e7355a3826969c00405
treeade9c5545e07f53ac2ac10a3b1ca7b0dfa62b696
parent28f38f35a00f8f9de6358b1e5b32fc4f17de2f81
setup: propagate prefix via repository discovery

In the preceding commits we have started to propagate all information
required for the configuration of the repository via a new `struct
repo_discovery`. The only exception is the repository's prefix, which we
still return via the return parameter.

This is conceptually fine, but somewhat inconsistent. Refactor this to
instead propagate the prefix via the repository discovery, too.

While at it, drop a static variable in `repo_discover_bare_gitdir()`.
We apply its value to the repository discovery anyway, so we don't have
to keep it around afterwards anymore.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
setup.c
git clone https://git.99rst.org/PROJECT