Module env_vars

Source
Expand description

Environment variables which affect the functioning of git-branchless.

Constants§

TEST_GIT
Path to the Git executable to shell out to as a subprocess when appropriate. This may be set during tests.
TEST_GIT_EXEC_PATH
“Path to wherever your core Git programs are installed”. You can find the default value by running git --exec-path.
TEST_SEPARATE_COMMAND_BINARIES
Specifies git-branchless subcommands to invoke directly.

Functions§

get_git_exec_path
Get the GIT_EXEC_PATH environment variable for testing.
get_path_to_git
Get the path to the Git executable for testing.
should_use_separate_command_binary
Determine whether the specified binary should be run separately. See TEST_SEPARATE_COMMAND_BINARIES for more details.