Re: Comparing the working tree with a commit should be independent of the index

2012-08-20 Thread Maaartin
On 08/18/2012 11:19 PM, Junio C Hamano wrote: Instead I get deleted file. Adding the file to the index changes it. This is IMHO a bug. Among the 7 interesting cases, a path missing from the index have 3 interesting cases. In $commitOn filesystem Yes Yes

Re: Comparing the working tree with a commit should be independent of the index

2012-08-18 Thread Junio C Hamano
Maaartin graj...@seznam.cz writes: Instead I get deleted file. Adding the file to the index changes it. This is IMHO a bug. There are 7 interesting combinations for the state of a path. It either exists in or missing from the commit you are gving to git diff, it either exists in or missing