in lib/rugged_adapter/git_layer_rugged.rb [216:236]
def log(ref = 'refs/heads/master', path = nil, options = {})
default_options = {
:limit => options[:max_count] ? options[:max_count] : 10,
:offset => options[:skip] ? options[:skip] : 0,
:path => path,
:follow => false,
:skip_merges => false
}
options = default_options.merge(**options)
options[:limit] ||= 0
options[:offset] ||= 0
sha = sha_from_ref(ref)
return [] if sha.nil?
begin
build_log(sha, **options)
rescue Rugged::OdbError, Rugged::InvalidError, Rugged::ReferenceError
[]
end
end