Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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)
Example #4
0
 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)