files.rb revision e8b73e98504b46b48d1972b1c3561225aa6c55d2
# 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