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

Function openRecentRepo

pkg/app/app.go:170–180  ·  view source on GitHub ↗
(app *App)

Source from the content-addressed store, hash-verified

168}
169
170func openRecentRepo(app *App) bool {
171 for _, repoDir := range app.Config.GetAppState().RecentRepos {
172 if isRepo, _ := isDirectoryAGitRepository(repoDir); isRepo {
173 if err := os.Chdir(repoDir); err == nil {
174 return true
175 }
176 }
177 }
178
179 return false
180}
181
182func (app *App) setupRepo(
183 repoPaths *git_commands.RepoPaths,

Callers 1

setupRepoMethod · 0.85

Calls 3

ChdirMethod · 0.80
GetAppStateMethod · 0.65

Tested by

no test coverage detected