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