3 # object that holds the last X commits on given branch
18 def initialize(base, count = 30)
42 def between(sha1, sha2 = nil)
44 @between = [sha1, sha2]
49 self.map { |c| c.to_s }.join("\n")
53 # forces git log to run
57 @commits.size rescue nil
69 @commits.first rescue nil
85 # actually run the 'git log' command
87 log = @base.lib.log_commits(:count => @count, :object => @object,
88 :path_limiter => @path, :since => @since, :between => @between)
89 @commits = log.map { |l| Git::Object::Commit.new(@base, l) }