diff options
author | Brandon Williams <bmwill@google.com> | 2017-05-30 10:30:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-02 09:36:07 +0900 |
commit | 94a0097a41f09e00322add6d1cf62b3610b6a85c (patch) | |
tree | de07985882df981e5b9a5e2306d4f393bdafb09d /tree-diff.c | |
parent | 55497b8c9e0163cb6d02cdf3b3cc3a10330c2b66 (diff) | |
download | git-94a0097a41f09e00322add6d1cf62b3610b6a85c.tar.gz |
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>
Diffstat (limited to 'tree-diff.c')
-rw-r--r-- | tree-diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tree-diff.c b/tree-diff.c index f2c747ea50..7ae1f10b2e 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -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 { |