{"thread":{"id":"26153","subject":"Update index with a pickaxed diff","startedAt":"2010-12-29T11:33:43Z","lastAt":"2010-12-29T13:54:51Z","messageCount":2,"participants":["Jeenu V","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"158706","messageId":"AANLkTi=BJ-8FaN+rk6_74mgM0PVzVP5uhV3aO1A3jUS3@mail.gmail.com","threadId":"26153","inReplyTo":null,"subject":"Update index with a pickaxed diff","fromName":"Jeenu V","fromEmail":"jeenuv@gmail.com","sentAt":"2010-12-29T11:33:43Z","receivedAt":"2010-12-29T11:33:43Z","isPatch":false,"sender":{"key":"jeenuv@gmail.com","avatar":"https://gravatar.com/avatar/0fae51e727209ba442f53fbab775dec62add0884f7a1bf1eb9fee94fb876f2b0?d=mp&s=160"},"body":"I'd like to know if there's a quick way of updating the index with the\noutput of 'git diff -S<expr>'. I find this useful if the change set\nthat I wanted to include results from, for example, a mass identifier\nrenaming. That would be easier, especially when my working directory\nis already dirty with other changes, and I don't have to interactively\nfilter out change sets, other than those matching <expr>.\n\nThanks.\n\n-- \nJeenu\n"},{"id":"158708","messageId":"201012291454.52160.trast@student.ethz.ch","threadId":"26153","inReplyTo":"AANLkTi=BJ-8FaN+rk6_74mgM0PVzVP5uhV3aO1A3jUS3@mail.gmail.com","subject":"Re: Update index with a pickaxed diff","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2010-12-29T13:54:51Z","receivedAt":"2010-12-29T13:54:51Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Jeenu V wrote:\n> I'd like to know if there's a quick way of updating the index with the\n> output of 'git diff -S<expr>'.\n\ngit diff <whatever> | git apply --cached\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"}]}