| 475 | }; |
| 476 | |
| 477 | static struct diff_filespec *get_filespec(const char *name, const char *p) |
| 478 | { |
| 479 | struct diff_filespec *spec = alloc_filespec(name); |
| 480 | |
| 481 | fill_filespec(spec, null_oid(the_hash_algo), 0, 0100644); |
| 482 | spec->data = (char *)p; |
| 483 | spec->size = strlen(p); |
| 484 | spec->should_munmap = 0; |
| 485 | spec->is_stdin = 1; |
| 486 | spec->driver = §ion_headers; |
| 487 | |
| 488 | return spec; |
| 489 | } |
| 490 | |
| 491 | static void patch_diff(const char *a, const char *b, |
| 492 | struct diff_options *diffopt) |
no test coverage detected