(config *wconfig.FullConfigType, rescan bool)
| 154 | } |
| 155 | |
| 156 | func 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 | |
| 169 | func findInstalledGitBash() (string, error) { |
| 170 | // Try PATH first (skip system32, and only accept if in a Git directory) |
no test coverage detected