MCPcopy Create free account
hub / github.com/git/git / wt_status_collect_changes_trees

Function wt_status_collect_changes_trees

wt-status.c:615–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615void 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
639static void wt_status_collect_changes_worktree(struct wt_status *s)
640{

Callers 1

fill_commit_messageFunction · 0.85

Calls 7

repo_diff_setupFunction · 0.85
diff_setup_doneFunction · 0.85
diff_tree_oidFunction · 0.85
diffcore_stdFunction · 0.85
diff_flushFunction · 0.85
wt_status_get_stateFunction · 0.85
diff_freeFunction · 0.85

Tested by

no test coverage detected