MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / FindGitBash

Function FindGitBash

pkg/util/shellutil/shellutil.go:156–167  ·  view source on GitHub ↗
(config *wconfig.FullConfigType, rescan bool)

Source from the content-addressed store, hash-verified

154}
155
156func FindGitBash(config *wconfig.FullConfigType, rescan bool) string {
157 if runtime.GOOS != "windows" {
158 return ""
159 }
160
161 if config != nil && config.Settings.TermGitBashPath != "" {
162 return config.Settings.TermGitBashPath
163 }
164
165 path, _ := gitBashCache.Get(rescan)
166 return path
167}
168
169func findInstalledGitBash() (string, error) {
170 // Try PATH first (skip system32, and only accept if in a Git directory)

Callers 2

FindGitBashCommandMethod · 0.92
getLocalShellPathFunction · 0.92

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected