module GitTools::Branches
Constants
- KEEP_BRANCH_FILENAME
- KEEP_LIST
Public Class Methods
default_keep_list()
click to toggle source
# File lib/git_tools/branches/cleaner.rb, line 17 def self.default_keep_list KEEP_LIST + git_keep_branches_from_file end
git_keep_branches_from_file()
click to toggle source
# File lib/git_tools/branches/cleaner.rb, line 9 def self.git_keep_branches_from_file if File.exists?(KEEP_BRANCH_FILENAME) File.readlines(KEEP_BRANCH_FILENAME).each { |line| line.strip! } else [] end end