Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jesseduffield/lazygit
/ SetWorkTreeEnv
Function
SetWorkTreeEnv
pkg/env/env.go:21–23 ·
view source on GitHub ↗
(value string)
Source
from the content-addressed store, hash-verified
19
}
20
21
func
SetWorkTreeEnv(value string) {
22
os.Setenv(
"GIT_WORK_TREE"
, value)
23
}
24
25
func
UnsetGitLocationEnvVars() {
26
_ = os.Unsetenv(
"GIT_DIR"
)
Callers
1
Start
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected