builtin/notes: convert to struct object_id
Convert most of the static functions to use struct object_id. In addition, convert copy_notes_for_rewrite and its callers. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
fb61e4d3ab
commit
bb7e473971
@ -563,7 +563,7 @@ static int copy_notes_for_rebase(const struct am_state *state)
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (copy_note_for_rewrite(c, from_obj.hash, to_obj.hash))
|
||||
if (copy_note_for_rewrite(c, &from_obj, &to_obj))
|
||||
ret = error(_("Failed to copy notes from '%s' to '%s'"),
|
||||
oid_to_hex(&from_obj), oid_to_hex(&to_obj));
|
||||
}
|
||||
|
Reference in New Issue
Block a user