module GitCommands
Public Instance Methods
delete_git_branches(branches)
click to toggle source
# File lib/gitclean/git_commands.rb, line 10 def delete_git_branches(branches) branches.each do |branch| %x`git branch -D #{branch}` end end
get_git_branches()
click to toggle source
# File lib/gitclean/git_commands.rb, line 2 def get_git_branches branches = %x`git branch`.split.select do |branch| branch != "*" end branches end
show_git_branches()
click to toggle source
# File lib/gitclean/git_commands.rb, line 16 def show_git_branches %x`git branch` end