cocci: apply the "diff.h" part of "the_repository.pending"

Apply the part of "the_repository.pending.cocci" pertaining to
"diff.h".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason
2023-03-28 15:58:49 +02:00
committed by Junio C Hamano
parent ecb5091fd4
commit 085390328f
8 changed files with 9 additions and 12 deletions

View File

@@ -485,7 +485,7 @@ static void output(struct string_list *a, struct string_list *b,
if (range_diff_opts->diffopt)
memcpy(&opts, range_diff_opts->diffopt, sizeof(opts));
else
diff_setup(&opts);
repo_diff_setup(the_repository, &opts);
opts.no_free = 1;
if (!opts.output_format)