Method: MGit::LogCommand#execute
- Defined in:
- lib/mgit/commands/log.rb
#execute(_) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/mgit/commands/log.rb', line 3 def execute(_) Registry.chdir_each do |repo| repo.remote_tracking_branches.each do |branch, upstream| uc = repo.unmerged_commits(branch, upstream) next if uc.empty? pinfo "In repository #{repo.name}, branch #{upstream} the following commits were made:" t = [] uc.each { |c| t << [c[:commit], c[:author], c[:subject]] } ptable t end end end |