diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-01 08:18:16 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-02 08:09:42 +1000 |
commit | da3e00823f733743c2bd8076d13955dbed9fcbae (patch) | |
tree | 0b9a5dfa358fe8e1d0b0d53ebb897282548a4581 /pkg/gui/tasks_adapter.go | |
parent | f3be2b3e68a49742ee88053a1d029926bc0d1819 (diff) |
allow submodule init and show submodule diff with a prefix
Diffstat (limited to 'pkg/gui/tasks_adapter.go')
-rw-r--r-- | pkg/gui/tasks_adapter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/tasks_adapter.go b/pkg/gui/tasks_adapter.go index 91ca92a79..8df7acd3e 100644 --- a/pkg/gui/tasks_adapter.go +++ b/pkg/gui/tasks_adapter.go @@ -8,7 +8,7 @@ import ( "github.com/jesseduffield/lazygit/pkg/tasks" ) -func (gui *Gui) newCmdTask(viewName string, cmd *exec.Cmd) error { +func (gui *Gui) newCmdTask(viewName string, cmd *exec.Cmd, prefix string) error { gui.Log.WithField( "command", strings.Join(cmd.Args, " "), @@ -34,7 +34,7 @@ func (gui *Gui) newCmdTask(viewName string, cmd *exec.Cmd) error { return err } - if err := manager.NewTask(manager.NewCmdTask(r, cmd, height+oy+10, nil)); err != nil { + if err := manager.NewTask(manager.NewCmdTask(r, cmd, prefix, height+oy+10, nil)); err != nil { return err } |