(
&mut self,
algorithm: GitHashAlgorithm,
kind: GitObjectKind,
bytes: Vec<u8>,
)
| 830 | } |
| 831 | |
| 832 | pub fn insert( |
| 833 | &mut self, |
| 834 | algorithm: GitHashAlgorithm, |
| 835 | kind: GitObjectKind, |
| 836 | bytes: Vec<u8>, |
| 837 | ) -> Result<GitObjectId, ProjectTreeError> { |
| 838 | self.insert_shared(algorithm, kind, Arc::from(bytes)) |
| 839 | } |
| 840 | |
| 841 | /// [`Self::insert`] for bytes another holder already shares (a |
| 842 | /// repository entry's bytes): no copy is made. |