cocci: apply the "commit.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "commit.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
cb338c23d6
commit
ecb5091fd4
@ -247,7 +247,7 @@ struct commit_list *get_shallow_commits_by_rev_list(int ac, const char **av,
|
||||
struct commit *c = p->item;
|
||||
struct commit_list *parent;
|
||||
|
||||
if (parse_commit(c))
|
||||
if (repo_parse_commit(the_repository, c))
|
||||
die("unable to parse commit %s",
|
||||
oid_to_hex(&c->object.oid));
|
||||
|
||||
@ -583,7 +583,7 @@ static void paint_down(struct paint_info *info, const struct object_id *oid,
|
||||
if (c->object.flags & BOTTOM)
|
||||
continue;
|
||||
|
||||
if (parse_commit(c))
|
||||
if (repo_parse_commit(the_repository, c))
|
||||
die("unable to parse commit %s",
|
||||
oid_to_hex(&c->object.oid));
|
||||
|
||||
|
Reference in New Issue
Block a user