summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2020-01-30 20:32:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-31 18:45:39 (GMT)
commiteb999b3295b22680a41c0d807a8b442407b1b19f (patch)
tree9077234c80e36a123ae7ef87deefe362ce7e1dae /diff.c
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783 (diff)
downloadgit-eb999b3295b22680a41c0d807a8b442407b1b19f.zip
git-eb999b3295b22680a41c0d807a8b442407b1b19f.tar.gz
git-eb999b3295b22680a41c0d807a8b442407b1b19f.tar.bz2
diff: make diff_populate_filespec() honor its repo argument
diff_populate_filespec() takes a struct repository argument but it doesn't get passed down to read_object_file(). Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 8e2914c..0f333c2 100644
--- a/diff.c
+++ b/diff.c
@@ -4024,7 +4024,7 @@ int diff_populate_filespec(struct repository *r,
return 0;
}
}
- s->data = read_object_file(&s->oid, &type, &s->size);
+ s->data = repo_read_object_file(r, &s->oid, &type, &s->size);
if (!s->data)
die("unable to read %s", oid_to_hex(&s->oid));
s->should_free = 1;