]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Makefile: clarify runtime relative gitexecdir
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Thu, 6 Oct 2022 01:32:05 +0000 (08:32 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Oct 2022 02:06:01 +0000 (19:06 -0700)
"git" built with RUNTIME_PREFIX flag turned on could figure out
gitexecdir and other paths as relative to "git" executable.

However, in the section specifies gitexecdir, RUNTIME_PREFIX wasn't
mentioned, thus users may wrongly assume that "git" always locates
gitexecdir as relative path to the executable.

Let's clarify that only "git" built with RUNTIME_PREFIX will locate
gitexecdir as relative path.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 12be39ac49789898227d025c5249ce5d2842ae47..3625b63c0be991c5013a43faa570a8117d16d050 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -504,8 +504,9 @@ GIT-VERSION-FILE: FORCE
 #   template_dir
 #   sysconfdir
 # can be specified as a relative path some/where/else;
-# this is interpreted as relative to $(prefix) and "git" at
-# runtime figures out where they are based on the path to the executable.
+# this is interpreted as relative to $(prefix) and "git" built with
+# RUNTIME_PREFIX flag will figure out (at runtime) where they are
+# based on the path to the executable.
 # Additionally, the following will be treated as relative by "git" if they
 # begin with "$(prefix)/":
 #   mandir