diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-12 15:13:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-13 11:40:51 -0700 |
commit | a7609c54b399219bae5b8b94b305cf8e18bf20f8 (patch) | |
tree | 42f8415900d0958b655eb6a90ede151fac6012fa /convert.c | |
parent | Merge branch 'master' of git://bogomips.org/git-svn (diff) | |
download | tgif-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |