| 38 | } |
| 39 | |
| 40 | static int path_to_oid(const char *path, struct object_id *oid) |
| 41 | { |
| 42 | char hex_oid[GIT_MAX_HEXSZ]; |
| 43 | int i = 0; |
| 44 | while (*path && i < the_hash_algo->hexsz) { |
| 45 | if (*path != '/') |
| 46 | hex_oid[i++] = *path; |
| 47 | path++; |
| 48 | } |
| 49 | if (*path || i != the_hash_algo->hexsz) |
| 50 | return -1; |
| 51 | return get_oid_hex(hex_oid, oid); |
| 52 | } |
| 53 | |
| 54 | static int verify_notes_filepair(struct diff_filepair *p, struct object_id *oid) |
| 55 | { |
no test coverage detected