{"thread":{"id":"19329","subject":"[BUG] git add -p doesn't actually add","startedAt":"2009-05-13T04:41:34Z","lastAt":"2009-05-13T04:41:34Z","messageCount":1,"participants":["Matt Graham"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"113717","messageId":"1c5969370905122141x527e46dev3929c4cb43c9409d@mail.gmail.com","threadId":"19329","inReplyTo":null,"subject":"[BUG] git add -p doesn't actually add","fromName":"Matt Graham","fromEmail":"mdg149@gmail.com","sentAt":"2009-05-13T04:41:34Z","receivedAt":"2009-05-13T04:41:34Z","isPatch":false,"sender":{"key":"mdg149@gmail.com","avatar":"https://gravatar.com/avatar/a1f130a60a6550f75e8d7d3849e58e46494f36bfaf764a38cfd695ac85de8576?d=mp&s=160"},"body":"Hi,\nI'm having a couple problems with git add -p\n\nFirst problem:\n1. I run \"git add -p filename\"\n2. Split the first diff\n3. Edit the first diff\n4. Don't change the file, immediately write it and close the editor\nI get this error:\n\nStage this hunk [y,n,q,a,d,/,j,J,g,e,?]? e\nerror: patch failed: src/pygrate/pygrator.py:1\nerror: src/pygrate/pygrator.py: patch does not apply\nYour edited hunk does not apply. Edit again (saying \"no\" discards!) [y/n]? n\n\n\nSecond problem (on the same file):\n1. I run \"git add -p filename\"\n2. Split the first diff\n3. answer 'y' to all\nI run git status and it says the file is changed but not updated\n\n\nThe attached file shows this behavior for my version of git.\ngit version 1.6.3.9.g6345    (pulled from master tonight)\n"}]}