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
@ -1347,7 +1347,7 @@ static int head_has_history(void)
|
||||
{
|
||||
struct object_id oid;
|
||||
|
||||
return !get_oid("HEAD", &oid);
|
||||
return !repo_get_oid(the_repository, "HEAD", &oid);
|
||||
}
|
||||
|
||||
static const char *push_to_deploy(unsigned char *sha1,
|
||||
@ -1681,11 +1681,11 @@ static void check_aliased_update_internal(struct command *cmd,
|
||||
rp_error("refusing inconsistent update between symref '%s' (%s..%s) and"
|
||||
" its target '%s' (%s..%s)",
|
||||
cmd->ref_name,
|
||||
find_unique_abbrev(&cmd->old_oid, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(&cmd->new_oid, DEFAULT_ABBREV),
|
||||
repo_find_unique_abbrev(the_repository, &cmd->old_oid, DEFAULT_ABBREV),
|
||||
repo_find_unique_abbrev(the_repository, &cmd->new_oid, DEFAULT_ABBREV),
|
||||
dst_cmd->ref_name,
|
||||
find_unique_abbrev(&dst_cmd->old_oid, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(&dst_cmd->new_oid, DEFAULT_ABBREV));
|
||||
repo_find_unique_abbrev(the_repository, &dst_cmd->old_oid, DEFAULT_ABBREV),
|
||||
repo_find_unique_abbrev(the_repository, &dst_cmd->new_oid, DEFAULT_ABBREV));
|
||||
|
||||
cmd->error_string = dst_cmd->error_string =
|
||||
"inconsistent aliased update";
|
||||
|
||||
Reference in New Issue
Block a user