| 381 | } |
| 382 | |
| 383 | static const struct archiver *lookup_archiver(const char *name) |
| 384 | { |
| 385 | int i; |
| 386 | |
| 387 | if (!name) |
| 388 | return NULL; |
| 389 | |
| 390 | for (i = 0; i < nr_archivers; i++) { |
| 391 | if (!strcmp(name, archivers[i]->name)) |
| 392 | return archivers[i]; |
| 393 | } |
| 394 | return NULL; |
| 395 | } |
| 396 | |
| 397 | struct path_exists_context { |
| 398 | struct pathspec pathspec; |
no outgoing calls
no test coverage detected