summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-04-05 13:03:50 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-04-29 07:28:33 +0200
commitd50c58b4c669b1de94bf4d04f508b3eb5b84647c (patch)
tree32b0692ca3cdd5f41da46494ab31b1bde630ee86 /pkg/commands
parent5645a662de36bd742c36f26b34b9e74510ba54eb (diff)
Implement "edit commit" in terms of the new EditRebase function
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git_commands/rebase.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/pkg/commands/git_commands/rebase.go b/pkg/commands/git_commands/rebase.go
index b34f8886a..26c0536e9 100644
--- a/pkg/commands/git_commands/rebase.go
+++ b/pkg/commands/git_commands/rebase.go
@@ -127,20 +127,6 @@ func (self *RebaseCommands) InteractiveRebase(commits []*models.Commit, index in
}).Run()
}
-func (self *RebaseCommands) InteractiveRebaseBreakAfter(commits []*models.Commit, index int) error {
- todo, sha, err := self.BuildSingleActionTodo(commits, index-1, "pick")
- if err != nil {
- return err
- }
-
- todo = append(todo, TodoLine{Action: "break", Commit: nil})
- return self.PrepareInteractiveRebaseCommand(PrepareInteractiveRebaseCommandOpts{
- baseShaOrRoot: sha,
- todoLines: todo,
- overrideEditor: true,
- }).Run()
-}
-
func (self *RebaseCommands) EditRebase(branchRef string) error {
commands := []TodoLine{{Action: "break"}}
return self.PrepareInteractiveRebaseCommand(PrepareInteractiveRebaseCommandOpts{