(
&mut self,
algorithm: GitHashAlgorithm,
kind: GitObjectKind,
bytes: Vec<u8>,
)
| 852 | } |
| 853 | |
| 854 | pub fn insert( |
| 855 | &mut self, |
| 856 | algorithm: GitHashAlgorithm, |
| 857 | kind: GitObjectKind, |
| 858 | bytes: Vec<u8>, |
| 859 | ) -> Result<GitObjectId, ProjectTreeError> { |
| 860 | self.insert_shared(algorithm, kind, Arc::from(bytes)) |
| 861 | } |
| 862 | |
| 863 | /// [`Self::insert`] for bytes another holder already shares (a |
| 864 | /// repository entry's bytes): no copy is made. |