git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Update index with a pickaxed diff

From
Jeenu V <jeenuv@gmail.com>
Date
Dec 29, 2010, 11:33 UTC
Message-ID
<AANLkTi=BJ-8FaN+rk6_74mgM0PVzVP5uhV3aO1A3jUS3@mail.gmail.com>

I'd like to know if there's a quick way of updating the index with the output of 'git diff -S<expr>'. I find this useful if the change set that I wanted to include results from, for example, a mass identifier renaming. That would be easier, especially when my working directory is already dirty with other changes, and I don't have to interactively filter out change sets, other than those matching <expr>.

Thanks.
-- 
Jeenu
Next: Thomas Rast
Message 1 of 2 in “Update index with a pickaxed diff”
  1. Jeenu VDec 29, 2010
  2. Thomas RastDec 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.