MCPcopy
hub / github.com/jesseduffield/lazygit / isDirectoryAGitRepository

Function isDirectoryAGitRepository

pkg/app/app.go:165–168  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

163}
164
165func isDirectoryAGitRepository(dir string) (bool, error) {
166 info, err := os.Stat(filepath.Join(dir, ".git"))
167 return info != nil, err
168}
169
170func openRecentRepo(app *App) bool {
171 for _, repoDir := range app.Config.GetAppState().RecentRepos {

Callers 3

StartFunction · 0.85
openRecentRepoFunction · 0.85
setupRepoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected