static void show_commit(struct commit *commit, void *data)
{
- add_object_entry(get_object_hash(commit->object), OBJ_COMMIT, NULL, 0);
+ add_object_entry(commit->object.oid.hash, OBJ_COMMIT, NULL, 0);
commit->object.flags |= OBJECT_ADDED;
if (write_bitmap_index)
char *name = path_name(path, last);
add_preferred_base_object(name);
- add_object_entry(get_object_hash(*obj), obj->type, name, 0);
+ add_object_entry(obj->oid.hash, obj->type, name, 0);
obj->flags |= OBJECT_ADDED;
/*
static void show_edge(struct commit *commit)
{
- add_preferred_base(get_object_hash(commit->object));
+ add_preferred_base(commit->object.oid.hash);
}
struct in_pack_object {
static void mark_in_pack_object(struct object *object, struct packed_git *p, struct in_pack *in_pack)
{
- in_pack->array[in_pack->nr].offset = find_pack_entry_one(get_object_hash(*object), p);
+ in_pack->array[in_pack->nr].offset = find_pack_entry_one(object->oid.hash, p);
in_pack->array[in_pack->nr].object = object;
in_pack->nr++;
}
ofscmp);
for (i = 0; i < in_pack.nr; i++) {
struct object *o = in_pack.array[i].object;
- add_object_entry(get_object_hash(*o), o->type, "", 0);
+ add_object_entry(o->oid.hash, o->type, "", 0);
}
}
free(in_pack.array);
const char *last,
void *data)
{
- sha1_array_append(&recent_objects, get_object_hash(*obj));
+ sha1_array_append(&recent_objects, obj->oid.hash);
}
static void record_recent_commit(struct commit *commit, void *data)
{
- sha1_array_append(&recent_objects, get_object_hash(commit->object));
+ sha1_array_append(&recent_objects, commit->object.oid.hash);
}
static void get_object_list(int ac, const char **av)