Re: [PATCH 03/16] Modify match_stat_basic to prepare for other index formats

2012-08-02 Thread Thomas Gummerer
On 08/02, Nguyen Thai Ngoc Duy wrote: > On Thu, Aug 2, 2012 at 6:01 PM, Thomas Gummerer wrote: > > @@ -1443,7 +1452,6 @@ void read_index_v2(struct index_state *istate, void > > *mmap, int mmap_size) > > src_offset += consumed; > > } > > strbuf_release(&previous_nam

Re: [PATCH 03/16] Modify match_stat_basic to prepare for other index formats

2012-08-02 Thread Nguyen Thai Ngoc Duy
On Thu, Aug 2, 2012 at 6:01 PM, Thomas Gummerer wrote: > @@ -1443,7 +1452,6 @@ void read_index_v2(struct index_state *istate, void > *mmap, int mmap_size) > src_offset += consumed; > } > strbuf_release(&previous_name_buf); > - > while (src_offset <= mmap_si

[PATCH 03/16] Modify match_stat_basic to prepare for other index formats

2012-08-02 Thread Thomas Gummerer
Modify match_stat_basic, into one function that handles the general case, which is the same for all index formats, and a function that handles the specific parts for each index file version. Signed-off-by: Thomas Gummerer --- read-cache.c | 77 +++-