pub fn write_blob(repo: &Path, data: &[u8]) -> Result<String, SyncError>Expand description
Writes raw bytes as a git blob and returns its object SHA.
Runs git hash-object -w --stdin, piping data to stdin. Because git
objects are content-addressed, writing identical bytes always yields the
same SHA, which is what makes incremental tree rebuilds dedup cleanly.