Skip to content

Commit 9045801

Browse files
Matthew Ogilviegitster
authored andcommitted
INSTALL: document a simpler way to run uninstalled builds
The new scripts automatically saved in the bin-wrappers directory allow you to run a build when you have neither installed git nor tweaked environment variables. Mention this in INSTALL, along with the slight performance issue of doing so. This can be especially handy for manually testing network-invoked git (from ssh, web servers, or similar), but it is also handy with a plain command prompt. Signed-off-by: Matthew Ogilvie <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e4597aa commit 9045801

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

INSTALL

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ Issues of note:
3838
Interactive Tools package still can install "git", but you can build it
3939
with --disable-transition option to avoid this.
4040

41-
- You can use git after building but without installing if you
42-
wanted to. Various git commands need to find other git
43-
commands and scripts to do their work, so you would need to
44-
arrange a few environment variables to tell them that their
45-
friends will be found in your built source area instead of at
46-
their standard installation area. Something like this works
47-
for me:
41+
- You can use git after building but without installing if you want
42+
to test drive it. Simply run git found in bin-wrappers directory
43+
in the build directory, or prepend that directory to your $PATH.
44+
This however is less efficient than running an installed git, as
45+
you always need an extra fork+exec to run any git subcommand.
46+
47+
It is still possible to use git without installing by setting a few
48+
environment variables, which was the way this was done
49+
traditionally. But using git found in bin-wrappers directory in
50+
the build directory is far simpler. As a historical reference, the
51+
old way went like this:
4852

4953
GIT_EXEC_PATH=`pwd`
5054
PATH=`pwd`:$PATH

0 commit comments

Comments
 (0)