From 36e4d74a210ba618e1520f11ce7fc2f8baec5bb8 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 27 Jun 2005 03:34:06 -0700 Subject: [PATCH] Enhance sha1_file_size() into sha1_object_info() This lets us eliminate one use of map_sha1_file() outside sha1_file.c, to bring us one step closer to the packed GIT. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diff.c') diff --git a/diff.c b/diff.c index 5cb340ca09..a72029058e 100644 --- a/diff.c +++ b/diff.c @@ -425,7 +425,7 @@ int diff_populate_filespec(struct diff_filespec *s, int size_only) s->size = e->size; return 0; } - if (!sha1_file_size(s->sha1, &s->size)) + if (!sha1_object_info(s->sha1, type, &s->size)) locate_size_cache(s->sha1, 0, s->size); } else { -- cgit 1.2.3-korg