Convert struct object to object_id
struct object is one of the major data structures dealing with object IDs. Convert it to use struct object_id instead of an unsigned char array. Convert get_object_hash to refer to the new member as well. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:

committed by
Jeff King

parent
7999b2cf77
commit
f2fd0760f6
@ -496,7 +496,7 @@ static int show_merge_base(struct commit_list *seen, int num_rev)
|
||||
int flags = commit->object.flags & all_mask;
|
||||
if (!(flags & UNINTERESTING) &&
|
||||
((flags & all_revs) == all_revs)) {
|
||||
puts(sha1_to_hex(commit->object.sha1));
|
||||
puts(oid_to_hex(&commit->object.oid));
|
||||
exit_status = 0;
|
||||
commit->object.flags |= UNINTERESTING;
|
||||
}
|
||||
@ -516,7 +516,7 @@ static int show_independent(struct commit **rev,
|
||||
unsigned int flag = rev_mask[i];
|
||||
|
||||
if (commit->object.flags == flag)
|
||||
puts(sha1_to_hex(commit->object.sha1));
|
||||
puts(oid_to_hex(&commit->object.oid));
|
||||
commit->object.flags |= UNINTERESTING;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user