Re: [PATCH v9 1/6] read-cache: factor out get_sha1_from_index() helper

2016-05-09 Thread Junio C Hamano
tbo...@web.de writes: > +#define get_sha1_from_cache(path) get_sha1_from_index (&the_index, (path)) > #endif Micronit: lose the extra SP; i.e. "get_sha1_from_index(&the_index, (path))". > diff --git a/read-cache.c b/read-cache.c > index d9fb78b..a3ef967 100644 > --- a/read-cache.c > +++ b/read

[PATCH v9 1/6] read-cache: factor out get_sha1_from_index() helper

2016-05-06 Thread tboegi
From: Torsten Bögershausen Factor out the retrieval of the sha1 for a given path in read_blob_data_from_index() into the function get_sha1_from_index(). This will be used in the next commit, when convert.c can do the analyze for "text=auto" without slurping the whole blob into memory at once. A