| 707 | } |
| 708 | |
| 709 | void show_interdiff(const struct object_id *oid1, const struct object_id *oid2, |
| 710 | int indent, struct diff_options *diffopt) |
| 711 | { |
| 712 | struct diff_options opts; |
| 713 | struct strbuf prefix = STRBUF_INIT; |
| 714 | |
| 715 | memcpy(&opts, diffopt, sizeof(opts)); |
| 716 | opts.output_format = DIFF_FORMAT_PATCH; |
| 717 | opts.output_prefix = idiff_prefix_cb; |
| 718 | strbuf_addchars(&prefix, ' ', indent); |
| 719 | opts.output_prefix_data = prefix.buf; |
| 720 | diff_setup_done(&opts); |
| 721 | |
| 722 | diff_tree_oid(oid1, oid2, "", &opts); |
| 723 | diffcore_std(&opts); |
| 724 | diff_flush(&opts); |
| 725 | |
| 726 | strbuf_release(&prefix); |
| 727 | } |
no test coverage detected