cocci: apply the "cache.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "cache.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:

committed by
Junio C Hamano

parent
7258e892d2
commit
d850b7a545
@ -2628,7 +2628,7 @@ int repo_index_has_changes(struct repository *repo,
|
||||
|
||||
if (tree)
|
||||
cmp = tree->object.oid;
|
||||
if (tree || !get_oid_tree("HEAD", &cmp)) {
|
||||
if (tree || !repo_get_oid_tree(the_repository, "HEAD", &cmp)) {
|
||||
struct diff_options opt;
|
||||
|
||||
repo_diff_setup(repo, &opt);
|
||||
|
Reference in New Issue
Block a user