X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=bisect.c;h=e87ac29a51be4126415aed1bc9f4638660232010;hb=17c8f1f2eda10a972af01b6a909d6586e4114c41;hp=3af955c4bc4e1c7cd155a5f2e460cee38af732cd;hpb=7d0c1f4556ad89b2f7eae97d31ea85c3bfdf7c87;p=thirdparty%2Fgit.git diff --git a/bisect.c b/bisect.c index 3af955c4bc..e87ac29a51 100644 --- a/bisect.c +++ b/bisect.c @@ -896,24 +896,15 @@ static void show_diff_tree(struct repository *r, const char *prefix, struct commit *commit) { + const char *argv[] = { + "diff-tree", "--pretty", "--stat", "--summary", "--cc", NULL + }; struct rev_info opt; - /* diff-tree init */ + git_config(git_diff_ui_config, NULL); repo_init_revisions(r, &opt, prefix); - git_config(git_diff_basic_config, NULL); /* no "diff" UI options */ - opt.abbrev = 0; - opt.diff = 1; - /* This is what "--pretty" does */ - opt.verbose_header = 1; - opt.use_terminator = 0; - opt.commit_format = CMIT_FMT_DEFAULT; - - /* diff-tree init */ - if (!opt.diffopt.output_format) - opt.diffopt.output_format = DIFF_FORMAT_RAW; - - setup_revisions(0, NULL, &opt, NULL); + setup_revisions(ARRAY_SIZE(argv) - 1, argv, &opt, NULL); log_tree_commit(&opt, commit); }