Re: [PATCH 1/4] commit: reload cache properly

2013-06-01 Thread Duy Nguyen
On Thu, May 30, 2013 at 7:58 PM, Thomas Rast tr...@inf.ethz.ch wrote: Felipe Contreras felipe.contre...@gmail.com writes: On Thu, May 30, 2013 at 7:17 AM, Thomas Rast tr...@inf.ethz.ch wrote: diff --git i/t/t7501-commit.sh w/t/t7501-commit.sh index 195e747..1608254 100755 ---

Re: [PATCH 1/4] commit: reload cache properly

2013-05-30 Thread Thomas Rast
Felipe Contreras felipe.contre...@gmail.com writes: We are supposedly adding files, to to which cache if 'the_index' is discarded? [...] if (!current_head) { discard_cache(); + if (read_cache() 0) + die(_(cannot read the index));

Re: [PATCH 1/4] commit: reload cache properly

2013-05-30 Thread Felipe Contreras
On Thu, May 30, 2013 at 7:17 AM, Thomas Rast tr...@inf.ethz.ch wrote: Felipe Contreras felipe.contre...@gmail.com writes: We are supposedly adding files, to to which cache if 'the_index' is discarded? [...] if (!current_head) { discard_cache(); + if

Re: [PATCH 1/4] commit: reload cache properly

2013-05-30 Thread Thomas Rast
Felipe Contreras felipe.contre...@gmail.com writes: On Thu, May 30, 2013 at 7:17 AM, Thomas Rast tr...@inf.ethz.ch wrote: Felipe Contreras felipe.contre...@gmail.com writes: We are supposedly adding files, to to which cache if 'the_index' is discarded? [...] if (!current_head) {

Re: [PATCH 1/4] commit: reload cache properly

2013-05-30 Thread Felipe Contreras
On Thu, May 30, 2013 at 7:58 AM, Thomas Rast tr...@inf.ethz.ch wrote: Felipe Contreras felipe.contre...@gmail.com writes: On Thu, May 30, 2013 at 7:17 AM, Thomas Rast tr...@inf.ethz.ch wrote: Felipe Contreras felipe.contre...@gmail.com writes: We are supposedly adding files, to to which

Re: [PATCH 1/4] commit: reload cache properly

2013-05-30 Thread Duy Nguyen
On Thu, May 30, 2013 at 7:17 PM, Thomas Rast tr...@inf.ethz.ch wrote: Felipe Contreras felipe.contre...@gmail.com writes: We are supposedly adding files, to to which cache if 'the_index' is discarded? [...] if (!current_head) { discard_cache(); + if