summaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorLibravatar Brandon Williams <bmwill@google.com>2017-06-12 15:13:52 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-13 11:40:51 -0700
commita7609c54b399219bae5b8b94b305cf8e18bf20f8 (patch)
tree42f8415900d0958b655eb6a90ede151fac6012fa /convert.c
parentMerge branch 'master' of git://bogomips.org/git-svn (diff)
downloadtgif-a7609c54b399219bae5b8b94b305cf8e18bf20f8.tar.xz
convert: convert get_cached_convert_stats_ascii to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.c')
-rw-r--r--convert.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/convert.c b/convert.c
index f1e168bc30..03160b376a 100644
--- a/convert.c
+++ b/convert.c
@@ -134,11 +134,12 @@ static const char *gather_convert_stats_ascii(const char *data, unsigned long si
}
}
-const char *get_cached_convert_stats_ascii(const char *path)
+const char *get_cached_convert_stats_ascii(const struct index_state *istate,
+ const char *path)
{
const char *ret;
unsigned long sz;
- void *data = read_blob_data_from_cache(path, &sz);
+ void *data = read_blob_data_from_index(istate, path, &sz);
ret = gather_convert_stats_ascii(data, sz);
free(data);
return ret;