Skip to content

Commit

Permalink
Merge f3ed3ff into 8d28899
Browse files Browse the repository at this point in the history
  • Loading branch information
stoivo committed Aug 28, 2019
2 parents 8d28899 + f3ed3ff commit 0ecd07c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions core/commands/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,12 @@ def log(self, **kwargs):


class GsLogByBranchCommand(LogMixin, WindowCommand, GitCommand):
_selected_branch = None

def run_async(self, **kwargs):
show_branch_panel(
lambda branch: self.on_branch_selection(branch, **kwargs),
selected_branch=self._selected_branch
)
show_branch_panel(lambda branch: self.on_branch_selection(branch, **kwargs))

def on_branch_selection(self, branch, **kwargs):
if branch:
self._selected_branch = branch
super().run_async(branch=branch, **kwargs)


Expand Down
3 changes: 1 addition & 2 deletions core/commands/log_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ def prepare_target_view(self, view):


class GsLogGraphByBranchCommand(LogGraphMixin, WindowCommand, GitCommand):
_selected_branch = None

def run_async(self):
show_branch_panel(self.on_branch_selection, selected_branch=self._selected_branch)
show_branch_panel(self.on_branch_selection)

def on_branch_selection(self, branch):
if branch:
Expand Down

0 comments on commit 0ecd07c

Please sign in to comment.