コード例 #1
0
ファイル: worker.py プロジェクト: gauravmanchanda/Git-Janitor
 def branches_to_be_deleted(self):
     """Return branches to be deleted."""
     branches = self.branches_to_be_deleted_excluding_skipped()
     if len(branches) > 0:
         Formatter.print_pretty_warn_message("Following local branches would \
             be deleted:")
         return branches
     else:
         Formatter.print_pretty_fail_message("No branches to be deleted")
         return []
コード例 #2
0
ファイル: worker.py プロジェクト: grvm/Git-Janitor
 def branches_to_be_deleted(self):
     """Return branches to be deleted."""
     branches = self.branches_to_be_deleted_excluding_skipped()
     if len(branches) > 0:
         Formatter.print_pretty_warn_message(
             "Following local branches would \
             be deleted:")
         return branches
     else:
         Formatter.print_pretty_fail_message("No branches to be deleted")
         return []
コード例 #3
0
ファイル: git.py プロジェクト: gauravmanchanda/Git-Janitor
 def warn_if_no_branch_matches_pattern(self, branches):
     """Show message if no branch matches the specified pattern."""
     if len(branches) == 0:
         Formatter.print_pretty_fail_message("No branch name matches the \
         given skip pattern: " + " " + Formatter.UNDERLINE + str(self.
                                             skip_pattern()))
コード例 #4
0
ファイル: git.py プロジェクト: grvm/Git-Janitor
 def warn_if_no_branch_matches_pattern(self, branches):
     """Show message if no branch matches the specified pattern."""
     if len(branches) == 0:
         Formatter.print_pretty_fail_message("No branch name matches the \
         given skip pattern: " + " " + Formatter.UNDERLINE +
                                             str(self.skip_pattern()))