cocci: apply the "pretty.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "pretty.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
bc726bd075
commit
bab821646a
@ -23,7 +23,8 @@ static int notes_cache_match_validity(struct repository *r,
|
||||
return 0;
|
||||
|
||||
memset(&pretty_ctx, 0, sizeof(pretty_ctx));
|
||||
format_commit_message(commit, "%s", &msg, &pretty_ctx);
|
||||
repo_format_commit_message(the_repository, commit, "%s", &msg,
|
||||
&pretty_ctx);
|
||||
strbuf_trim(&msg);
|
||||
|
||||
ret = !strcmp(msg.buf, validity);
|
||||
|
||||
Reference in New Issue
Block a user