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>
This commit is contained in:

committed by
Junio C Hamano

parent
41dd4330a1
commit
a7609c54b3
@ -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;
|
||||
|
Reference in New Issue
Block a user