예제 #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()
예제 #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()
예제 #3
0
파일: diff.py 프로젝트: jmdcal/git-cola
 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)
예제 #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)