# File lib/grit/git-ruby/repository.rb, line 301 def rev_list(sha, options) if sha.is_a? Array (end_sha, sha) = sha end log = log(sha, options) log = log.sort { |a, b| a[2] <=> b[2] }.reverse if end_sha log = truncate_arr(log, end_sha) end # shorten the list if it's longer than max_count (had to get everything in branches) if options[:max_count] if (opt_len = options[:max_count].to_i) < log.size log = log[0, opt_len] end end if options[:pretty] == 'raw' log.map {|k, v| v }.join('') else log.map {|k, v| k }.join("\n") end end