Method: MGit::BranchesCommand#execute
- Defined in:
- lib/mgit/commands/branches.rb
#execute(args) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/mgit/commands/branches.rb', line 3 def execute(args) Registry.each do |repo| pinfo "Repository #{repo.name} contains branches:" repo.branches.each do |b| psystem "#{b[:name]} #{b[:current] ? '*' : ''}" end end end |