diff: convert diff_change to struct object_id
Convert diff_change to take a struct object_id. In addition convert the function pointer type 'change_fn_t' to also take a struct object_id. 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
55497b8c9e
commit
94a0097a41
@ -74,7 +74,7 @@ static int emit_diff_first_parent_only(struct diff_options *opt, struct combine_
|
||||
{
|
||||
struct combine_diff_parent *p0 = &p->parent[0];
|
||||
if (p->mode && p0->mode) {
|
||||
opt->change(opt, p0->mode, p->mode, p0->oid.hash, p->oid.hash,
|
||||
opt->change(opt, p0->mode, p->mode, &p0->oid, &p->oid,
|
||||
1, 1, p->path, 0, 0);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user