summaryrefslogtreecommitdiffstats
path: root/pkg/commands/commits.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-10 16:01:46 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-11 17:07:49 +1000
commitbb918b579a3073d786fda83a2bc11c602e442aa0 (patch)
treefe126f12a88db9a9e119d0b172c0902bc0f49244 /pkg/commands/commits.go
parente145090046e1693e2100cb0a0ab40a271705f4b0 (diff)
start adding support for logging of commands
Diffstat (limited to 'pkg/commands/commits.go')
-rw-r--r--pkg/commands/commits.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/commands/commits.go b/pkg/commands/commits.go
index 3582131a6..df1a8a2c7 100644
--- a/pkg/commands/commits.go
+++ b/pkg/commands/commits.go
@@ -2,7 +2,6 @@ package commands
import (
"fmt"
- "os/exec"
"strings"
"github.com/jesseduffield/lazygit/pkg/commands/models"
@@ -53,11 +52,6 @@ func (c *GitCommand) AmendHead() error {
return c.OSCommand.RunCommand(c.AmendHeadCmdStr())
}
-// PrepareCommitAmendHeadSubProcess prepares a subprocess for `git commit --amend --allow-empty`
-func (c *GitCommand) PrepareCommitAmendHeadSubProcess() *exec.Cmd {
- return c.OSCommand.ShellCommandFromString(c.AmendHeadCmdStr())
-}
-
func (c *GitCommand) AmendHeadCmdStr() string {
return "git commit --amend --no-edit --allow-empty"
}