| 324 | } |
| 325 | |
| 326 | static void insert_file_table(struct repository *r, |
| 327 | struct mem_pool *pool, |
| 328 | struct hashmap *table, int index, |
| 329 | struct diff_filespec *filespec) |
| 330 | { |
| 331 | struct file_similarity *entry = mem_pool_alloc(pool, sizeof(*entry)); |
| 332 | |
| 333 | entry->index = index; |
| 334 | entry->filespec = filespec; |
| 335 | |
| 336 | hashmap_entry_init(&entry->entry, hash_filespec(r, filespec)); |
| 337 | hashmap_add(table, &entry->entry); |
| 338 | } |
| 339 | |
| 340 | /* |
| 341 | * Find exact renames first. |
no test coverage detected