KnowledgeProjectFiles constructor

KnowledgeProjectFiles(
  1. Map<String, String?> sha256
)

sha256 maps each path to the lowercase hexadecimal SHA-256 of the bytes a host read (digest), or to null for a file that was absent.

Each path is made absolute against the current directory now, and normalized, so the check at commit reads the files the host meant wherever the process is then. Throws ArgumentError when two paths name the same file with different digests.

Implementation

KnowledgeProjectFiles(Map<String, String?> sha256)
  : sha256 = Map.unmodifiable(_absolute(sha256));