(oid: &GitObjectId)
| 1539 | } |
| 1540 | |
| 1541 | pub(super) fn git_oid_hex(oid: &GitObjectId) -> Vec<u8> { |
| 1542 | const HEX: &[u8; 16] = b"0123456789abcdef"; |
| 1543 | let mut output = Vec::with_capacity(oid.as_bytes().len() * 2); |
| 1544 | for byte in oid.as_bytes() { |
| 1545 | output.push(HEX[usize::from(byte >> 4)]); |
| 1546 | output.push(HEX[usize::from(byte & 0x0f)]); |
| 1547 | } |
| 1548 | output |
| 1549 | } |
| 1550 | |
| 1551 | fn parse_gitlink_bytes( |
| 1552 | algorithm: GitHashAlgorithm, |
no test coverage detected