| 613 | } |
| 614 | |
| 615 | void wt_status_collect_changes_trees(struct wt_status *s, |
| 616 | const struct object_id *old_treeish, |
| 617 | const struct object_id *new_treeish) |
| 618 | { |
| 619 | struct diff_options opts = { 0 }; |
| 620 | |
| 621 | repo_diff_setup(s->repo, &opts); |
| 622 | opts.output_format = DIFF_FORMAT_CALLBACK; |
| 623 | opts.format_callback = wt_status_collect_updated_cb; |
| 624 | opts.format_callback_data = s; |
| 625 | opts.detect_rename = s->detect_rename >= 0 ? s->detect_rename : opts.detect_rename; |
| 626 | opts.rename_limit = s->rename_limit >= 0 ? s->rename_limit : opts.rename_limit; |
| 627 | opts.rename_score = s->rename_score >= 0 ? s->rename_score : opts.rename_score; |
| 628 | opts.flags.recursive = 1; |
| 629 | diff_setup_done(&opts); |
| 630 | |
| 631 | diff_tree_oid(old_treeish, new_treeish, "", &opts); |
| 632 | diffcore_std(&opts); |
| 633 | diff_flush(&opts); |
| 634 | wt_status_get_state(s->repo, &s->state, 0); |
| 635 | |
| 636 | diff_free(&opts); |
| 637 | } |
| 638 | |
| 639 | static void wt_status_collect_changes_worktree(struct wt_status *s) |
| 640 | { |
no test coverage detected