From d0d92c7697c311071e2fc4b5cc9fa9278a9c300a Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 10 Nov 2019 13:29:06 +1100 Subject: remove old add patch keybinding --- pkg/commands/git.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'pkg/commands/git.go') diff --git a/pkg/commands/git.go b/pkg/commands/git.go index e306efe13..bd834e574 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -508,12 +508,6 @@ func (c *GitCommand) Checkout(branch string, force bool) error { return c.OSCommand.RunCommand(fmt.Sprintf("git checkout %s %s", forceArg, branch)) } -// AddPatch prepares a subprocess for adding a patch by patch -// this will eventually be swapped out for a better solution inside the Gui -func (c *GitCommand) AddPatch(filename string) *exec.Cmd { - return c.OSCommand.PrepareSubProcess("git", "add", "--patch", c.OSCommand.Quote(filename)) -} - // PrepareCommitSubProcess prepares a subprocess for `git commit` func (c *GitCommand) PrepareCommitSubProcess() *exec.Cmd { return c.OSCommand.PrepareSubProcess("git", "commit") -- cgit v1.2.3