Merge branch 'bc/object-id'
Conversion from uchar[20] to struct object_id continues. * bc/object-id: (36 commits) convert: convert to struct object_id sha1_file: introduce a constant for max header length Convert lookup_replace_object to struct object_id sha1_file: convert read_sha1_file to struct object_id sha1_file: convert read_object_with_reference to object_id tree-walk: convert tree entry functions to object_id streaming: convert istream internals to struct object_id tree-walk: convert get_tree_entry_follow_symlinks internals to object_id builtin/notes: convert static functions to object_id builtin/fmt-merge-msg: convert remaining code to object_id sha1_file: convert sha1_object_info* to object_id Convert remaining callers of sha1_object_info_extended to object_id packfile: convert unpack_entry to struct object_id sha1_file: convert retry_bad_packed_offset to struct object_id sha1_file: convert assert_sha1_type to object_id builtin/mktree: convert to struct object_id streaming: convert open_istream to use struct object_id sha1_file: convert check_sha1_signature to struct object_id sha1_file: convert read_loose_object to use struct object_id builtin/index-pack: convert struct ref_delta_entry to object_id ...
This commit is contained in:
@ -639,7 +639,7 @@ static int read_tree_trivial(struct object_id *common, struct object_id *head,
|
||||
|
||||
static void write_tree_trivial(struct object_id *oid)
|
||||
{
|
||||
if (write_cache_as_tree(oid->hash, 0, NULL))
|
||||
if (write_cache_as_tree(oid, 0, NULL))
|
||||
die(_("git write-tree failed to write a tree"));
|
||||
}
|
||||
|
||||
@ -1324,7 +1324,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
|
||||
|
||||
check_commit_signature(commit, &signature_check);
|
||||
|
||||
find_unique_abbrev_r(hex, commit->object.oid.hash, DEFAULT_ABBREV);
|
||||
find_unique_abbrev_r(hex, &commit->object.oid, DEFAULT_ABBREV);
|
||||
switch (signature_check.result) {
|
||||
case 'G':
|
||||
break;
|
||||
@ -1417,9 +1417,9 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
|
||||
|
||||
if (verbosity >= 0) {
|
||||
printf(_("Updating %s..%s\n"),
|
||||
find_unique_abbrev(head_commit->object.oid.hash,
|
||||
find_unique_abbrev(&head_commit->object.oid,
|
||||
DEFAULT_ABBREV),
|
||||
find_unique_abbrev(remoteheads->item->object.oid.hash,
|
||||
find_unique_abbrev(&remoteheads->item->object.oid,
|
||||
DEFAULT_ABBREV));
|
||||
}
|
||||
strbuf_addstr(&msg, "Fast-forward");
|
||||
|
||||
Reference in New Issue
Block a user