]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
sha1_file: convert read_sha1_file to struct object_id
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index b463078d570356477b08f94f75c9a8a821737f84..5c8f3e16e8f2d75f583af426c01bbcd08dd9a14c 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -3626,7 +3626,7 @@ int diff_populate_filespec(struct diff_filespec *s, unsigned int flags)
                                return 0;
                        }
                }
-               s->data = read_sha1_file(s->oid.hash, &type, &s->size);
+               s->data = read_object_file(&s->oid, &type, &s->size);
                if (!s->data)
                        die("unable to read %s", oid_to_hex(&s->oid));
                s->should_free = 1;