Skip to content

Commit

Permalink
Merge pull request #1845 from timbrel/add-rebase-to-standard-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored Dec 20, 2023
2 parents 9c24aad + b96a071 commit d8d1c82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/commands/log_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2662,6 +2662,7 @@ def actions_for_single_line(self, view, info, branches):
]
actions += [
("Push", partial(self.push, current_branch)),
("Rebase on...", partial(self.rebase_on)),
SEPARATOR,
]

Expand Down Expand Up @@ -2863,6 +2864,9 @@ def fetch(self, current_branch):
remote = self.get_remote_for_branch(current_branch)
self.window.run_command("gs_fetch", {"remote": remote} if remote else None)

def rebase_on(self):
self.window.run_command("gs_rebase_on_branch")

def update_from_tracking(self, remote, remote_name, local_name):
# type: (str, str, str) -> None
self.window.run_command("gs_fetch", {
Expand Down

0 comments on commit d8d1c82

Please sign in to comment.