[PATCH 04/16] Modify write functions to prepare for other index formats

2012-08-02 Thread Thomas Gummerer
Modify the write_index function to add the possibility to add other index formats, that are written in a different way. Also mark all functions, which shall only be used with v2-v4 as v2 functions. Signed-off-by: Thomas Gummerer t.gumme...@gmail.com --- read-cache.c | 40

Re: [PATCH 04/16] Modify write functions 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 t.gumme...@gmail.com wrote: @@ -1785,7 +1785,7 @@ void update_index_if_able(struct index_state *istate, struct lock_file *lockfile rollback_lock_file(lockfile); } -int write_index(struct index_state *istate, int newfd) +int

Re: [PATCH 04/16] Modify write functions 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 t.gumme...@gmail.com wrote: @@ -1785,7 +1785,7 @@ void update_index_if_able(struct index_state *istate, struct lock_file *lockfile rollback_lock_file(lockfile); } -int