]> git.ipfire.org Git - thirdparty/git.git/commit
setup: make repository discovery self-contained
authorPatrick Steinhardt <ps@pks.im>
Tue, 30 Jun 2026 11:47:49 +0000 (13:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 18:29:41 +0000 (11:29 -0700)
commit4ce6d5814ec986d594efa475b87b8a46e206c1be
tree02ff01bbb9a3525ecad356fc6926a743abad4981
parentf04fea749cb63601ffc990a2449ef67d7522e3f9
setup: make repository discovery self-contained

In the preceding commits we have introduced a separate repository
discovery phase and refactored the logic so that we have two clear
phases:

  1. Repository discovery, which doesn't modify the repository itself at
     all.

  2. Repository configuration, which takes the information we have
     discovered to set up the repository.

Extract the first phase into a new function `repo_discover()` to further
stress these two different phases.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c