(&mut self, oid: &GitObjectId)
| 616 | } |
| 617 | |
| 618 | fn put_git_object_id(&mut self, oid: &GitObjectId) -> Result<(), OperationCodecError> { |
| 619 | self.put_u8(match oid.algorithm() { |
| 620 | GitHashAlgorithm::Sha1 => 0, |
| 621 | GitHashAlgorithm::Sha256 => 1, |
| 622 | })?; |
| 623 | self.put_bytes(oid.as_bytes()) |
| 624 | } |
| 625 | |
| 626 | fn put_git_index(&mut self, state: &GitIndexState) -> Result<(), OperationCodecError> { |
| 627 | self.put_hash(state.digest)?; |
no test coverage detected