MCPcopy
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
21func SetWorkTreeEnv(value string) {
22 os.Setenv("GIT_WORK_TREE", value)
23}
24
25func UnsetGitLocationEnvVars() {
26 _ = os.Unsetenv("GIT_DIR")

Callers 1

StartFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected