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
4
walker.c
4
walker.c
@ -79,7 +79,7 @@ static int process_commit(struct walker *walker, struct commit *commit)
|
||||
{
|
||||
struct commit_list *parents;
|
||||
|
||||
if (parse_commit(commit))
|
||||
if (repo_parse_commit(the_repository, commit))
|
||||
return -1;
|
||||
|
||||
while (complete && complete->item->date >= commit->date) {
|
||||
@ -93,7 +93,7 @@ static int process_commit(struct walker *walker, struct commit *commit)
|
||||
|
||||
walker_say(walker, "walk %s\n", oid_to_hex(&commit->object.oid));
|
||||
|
||||
if (process(walker, &get_commit_tree(commit)->object))
|
||||
if (process(walker, &repo_get_commit_tree(the_repository, commit)->object))
|
||||
return -1;
|
||||
|
||||
for (parents = commit->parents; parents; parents = parents->next) {
|
||||
|
||||
Reference in New Issue
Block a user