Class: GitRecent::ReflogIterator

Inherits:
Object
  • Object
show all
Defined in:
lib/git_recent/reflog_iterator.rb

Instance Method Summary collapse

Instance Method Details

#eachObject


5
6
7
8
9
10
11
# File 'lib/git_recent/reflog_iterator.rb', line 5

def each
  Open3.pipeline_r('git reflog') do |o, ts|
    o.each_line do |line_string|
      yield GitRecent::ReflogLine.new(line_string)
    end
  end
end