files.rb revision 5f9eeb33c7ef17dd06026f0d62255b89d3d158b7
# depends on GitRepository
if repository.empty?
@path = '/'
@content = []
@rugged_commit = nil
@rugged_object = nil
return
end
end
if file?
end
end
case type
end
end
@content ||= case type
end
end
type == :file
end
type == :dir
end
def type
return :dir if rugged_object.nil?
case rugged_object.type
:file
:dir
end
end
end
end
end
end
end
end
end