def apply_selection(self): s = selection.single_selection() if self.model.stageable() and s.modified: self.stage_selection() elif self.model.unstageable(): self.unstage_selection()
def apply_selection(self): s = selection.single_selection() if self.model.stageable() and s.modified: self.stage_selection() elif self.model.unstageable(): self.unstage_selection()
def apply_selection(self): s = selection.single_selection() if self.model.stageable() and s.modified: self.process_diff_selection(staged=False) elif self.model.unstageable(): self.process_diff_selection(staged=True)
def apply_selection(self): s = selection.single_selection() if self.model.stageable() and s.modified: self.process_diff_selection() elif self.model.unstageable(): self.process_diff_selection(reverse=True)