| 262 | }; |
| 263 | |
| 264 | static unsigned int hash_filespec(struct repository *r, |
| 265 | struct diff_filespec *filespec) |
| 266 | { |
| 267 | if (!filespec->oid_valid) { |
| 268 | if (diff_populate_filespec(r, filespec, NULL)) |
| 269 | return 0; |
| 270 | hash_object_file(r->hash_algo, filespec->data, filespec->size, |
| 271 | OBJ_BLOB, &filespec->oid); |
| 272 | } |
| 273 | return oidhash(&filespec->oid); |
| 274 | } |
| 275 | |
| 276 | static int find_identical_files(struct hashmap *srcs, |
| 277 | int dst_index, |
no test coverage detected