class GitRecent::ReflogIterator

Public Instance Methods

each() { |reflog_line| ... } click to toggle source
# 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