Exemple #1
0
 public Blob(RelativePath filePath)
 {
     FilePath = filePath.GetRelativeToGitRoot();
     FileName = filePath.GetFileName();
     using (StreamReader reader = new StreamReader(filePath.GetAbsolutePath())) {
         FileContent = reader.ReadToEnd();
     }
     _blobContent = CreateBlobFileContent();
     _checksum    = ContentHasher.HashContent(_blobContent);
 }