class GitWaybackMachine::History

Constants

SIZE

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/git_wayback_machine/history.rb, line 6
def initialize
  super raw_entries.map { |entry| Entry.new *entry }
end

Private Instance Methods

raw_entries() click to toggle source
# File lib/git_wayback_machine/history.rb, line 24
def raw_entries
  `git log --pretty=format:'%h|%an|%cr|%s'  -#{SIZE}`.split("\n").map do |entry|
    entry.sub(/\A\s*\*\s*/, "").split("|")
  end
end