]> git.ipfire.org Git - thirdparty/git.git/commit
GIT-BUILD-OPTIONS: propagate project's source directory
authorPatrick Steinhardt <ps@pks.im>
Tue, 18 Feb 2025 07:45:49 +0000 (08:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 19:40:02 +0000 (11:40 -0800)
commitc5823641a6769a727d890a55160346d92808bc0c
tree259fcfe2ba6fc5703cebb9cc3dd8765dc5881042
parent03944513488db4a81fdb4c21c3b515e4cb260b05
GIT-BUILD-OPTIONS: propagate project's source directory

A couple of our tests require knowledge around where to find the
project's source directory in order to locate files required for the
test itself. Until now we have been wiring these up ad-hoc via new,
specialized variables catered to the specific usecase. This is quite
awkward though, as every test that potentially needs to locate paths
relative to the source directory needs to grow another variable.

Introduce a new "GIT_SOURCE_DIR" variable into GIT-BUILD-OPTIONS to stop
this proliferation. Remove existing variables that can be derived from
it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
GIT-BUILD-OPTIONS.in
Makefile
contrib/buildsystems/CMakeLists.txt
meson.build
t/lib-gettext.sh
t/t7609-mergetool--lib.sh