git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Update index with a pickaxed diff
@ 2010-12-29 11:33 Jeenu V
  2010-12-29 13:54 ` Thomas Rast
  0 siblings, 1 reply; 2+ messages in thread
From: Jeenu V @ 2010-12-29 11:33 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Update index with a pickaxed diff
  2010-12-29 11:33 Update index with a pickaxed diff Jeenu V
@ 2010-12-29 13:54 ` Thomas Rast
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Rast @ 2010-12-29 13:54 UTC (permalink / raw)
  To: Jeenu V; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-29 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-29 11:33 Update index with a pickaxed diff Jeenu V
2010-12-29 13:54 ` Thomas Rast

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).