Convert find_unique_abbrev* to struct object_id
Convert find_unique_abbrev and find_unique_abbrev_r to each take a pointer to struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
40f5555ca3
commit
aab9583f7b
@ -1242,11 +1242,11 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
|
||||
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.hash, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(cmd->new_oid.hash, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(&cmd->old_oid, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(&cmd->new_oid, DEFAULT_ABBREV),
|
||||
dst_cmd->ref_name,
|
||||
find_unique_abbrev(dst_cmd->old_oid.hash, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(dst_cmd->new_oid.hash, DEFAULT_ABBREV));
|
||||
find_unique_abbrev(&dst_cmd->old_oid, DEFAULT_ABBREV),
|
||||
find_unique_abbrev(&dst_cmd->new_oid, DEFAULT_ABBREV));
|
||||
|
||||
cmd->error_string = dst_cmd->error_string =
|
||||
"inconsistent aliased update";
|
||||
|
||||
Reference in New Issue
Block a user