commands/git : remove dependency on gocui

This commit is contained in:
Anthony HAMON 2018-09-10 22:01:52 +02:00
parent 5c204b2813
commit d23577168f
2 changed files with 3 additions and 4 deletions

View file

@ -7,7 +7,6 @@ import (
"os/exec"
"strings"
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/i18n"
"github.com/jesseduffield/lazygit/pkg/utils"
"github.com/sirupsen/logrus"
@ -290,8 +289,8 @@ func (c *GitCommand) usingGpg() bool {
return value == "true" || value == "1" || value == "yes" || value == "on"
}
// Commit commit to git
func (c *GitCommand) Commit(g *gocui.Gui, message string) (*exec.Cmd, error) {
// Commit commits to git
func (c *GitCommand) Commit(message string) (*exec.Cmd, error) {
command := "git commit -m " + c.OSCommand.Quote(message)
if c.usingGpg() {
return c.OSCommand.PrepareSubProcess(c.OSCommand.Platform.shell, c.OSCommand.Platform.shellArg, command), nil