Re: Bug: write-tree corrupts intent-to-add index state

2012-11-06 Thread Nguyen Thai Ngoc Duy
On Tue, Nov 06, 2012 at 12:53:27AM -0800, Jonathon Mah wrote: > It appears the index forgot that those files were new. So not only > has the intent-to-add status been lost, but git status shows a file > existing in neither HEAD nor the index as not-new-but-modified. > > Tracing through it, I narro

Bug: write-tree corrupts intent-to-add index state

2012-11-06 Thread Jonathon Mah
Hi revisionaries, I came across what appears to be a bug while working today. I had several changes, both staged and unstaged, and two files that I had marked with intent-to-add (git add -N). $ git status -sb ## Library-3.x...origin/Library-3.x [ahead 4] M Library/LIRootSource.m M Library/Lib