diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-31 22:11:34 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 2a1e3faa0c61cc8c2418310089485dbab268228f (patch) | |
tree | 742988b455946b12a84adccb950b8df5a631417b /pkg/app | |
parent | eb056576cfe7d97503ef1baf3e1730c87d63976f (diff) |
resetting controllers on new repo
Diffstat (limited to 'pkg/app')
-rw-r--r-- | pkg/app/app.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index f38dcb75e..0ee7e4adf 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -94,7 +94,7 @@ func newLogger(config config.AppConfigurer) *logrus.Entry { } // NewApp bootstrap a new application -func NewApp(config config.AppConfigurer, filterPath string) (*App, error) { +func NewApp(config config.AppConfigurer) (*App, error) { userConfig := config.GetUserConfig() app := &App{ @@ -140,7 +140,7 @@ func NewApp(config config.AppConfigurer, filterPath string) (*App, error) { gitConfig := git_config.NewStdCachedGitConfig(app.Log) - app.Gui, err = gui.NewGui(app.Common, config, gitConfig, app.Updater, filterPath, showRecentRepos, dirName) + app.Gui, err = gui.NewGui(app.Common, config, gitConfig, app.Updater, showRecentRepos, dirName) if err != nil { return app, err } @@ -241,7 +241,7 @@ func (app *App) setupRepo() (bool, error) { return false, nil } -func (app *App) Run() error { +func (app *App) Run(filterPath string) error { if app.ClientContext == "INTERACTIVE_REBASE" { return app.Rebase() } @@ -250,7 +250,7 @@ func (app *App) Run() error { os.Exit(0) } - err := app.Gui.RunAndHandleError() + err := app.Gui.RunAndHandleError(filterPath) return err } |