| 696 | } |
| 697 | |
| 698 | static void ll_diff_tree_oid(const struct object_id *old_oid, |
| 699 | const struct object_id *new_oid, |
| 700 | struct strbuf *base, struct diff_options *opt) |
| 701 | { |
| 702 | struct combine_diff_path *paths, *p; |
| 703 | pathchange_fn_t pathchange_old = opt->pathchange; |
| 704 | |
| 705 | opt->pathchange = emit_diff_first_parent_only; |
| 706 | paths = diff_tree_paths(new_oid, &old_oid, 1, base, opt); |
| 707 | |
| 708 | for (p = paths; p;) { |
| 709 | struct combine_diff_path *pprev = p; |
| 710 | p = p->next; |
| 711 | free(pprev); |
| 712 | } |
| 713 | |
| 714 | opt->pathchange = pathchange_old; |
| 715 | } |
| 716 | |
| 717 | void diff_tree_oid(const struct object_id *old_oid, |
| 718 | const struct object_id *new_oid, |
no test coverage detected