threads / discuss / 26153

Update index with a pickaxed diff

Subject: Update index with a pickaxed diff

## tl;dr

2 messages between Dec 29, 2010 and Dec 29, 2010.

replies: 1people: 2as markdown or json

Jeenu V· Dec 29, 2010, 11:33 UTC · lore

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
Thomas Rast· Dec 29, 2010, 13:54 UTC · re: Jeenu V · lore

Re: Update index with a pickaxed diff

Jeenu V wrote:
> I'd like to know if there's a quick way of updating the index with the
> output of 'git diff -S<expr>'.
git diff <whatever> | git apply --cached
-- 
Thomas Rast
trast@{inf,student}.ethz.ch

← back to recent threads