(oid: &GitObjectId)
| 1557 | } |
| 1558 | |
| 1559 | pub(super) fn git_oid_hex(oid: &GitObjectId) -> Vec<u8> { |
| 1560 | const HEX: &[u8; 16] = b"0123456789abcdef"; |
| 1561 | let mut output = Vec::with_capacity(oid.as_bytes().len() * 2); |
| 1562 | for byte in oid.as_bytes() { |
| 1563 | output.push(HEX[usize::from(byte >> 4)]); |
| 1564 | output.push(HEX[usize::from(byte & 0x0f)]); |
| 1565 | } |
| 1566 | output |
| 1567 | } |
| 1568 | |
| 1569 | fn parse_gitlink_bytes( |
| 1570 | algorithm: GitHashAlgorithm, |
no test coverage detected