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