[lkml]   [2013]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [ 000/103] 3.10.3-stable review
On Wed, 2013-07-24 at 10:04 -0700, Linus Torvalds wrote:

> The alternative workflow is to tell git to track the new files added
> by the patch. So if you use "git apply --index", git will not just
> apply the patch, it will also add the result to the index - so you
> could commit it with a single "git commit", and you can see the diff -
> including new files - with "git diff --cached". And then "git reset
> --hard" will also undo the new files.

I don't know why "git apply" doesn't do it by default. Why would you
want to apply a patch without having git track new files?

This burnt me a few times when working with the -rt patch until I found
to use "--index" always.

-- Steve

 \ /
  Last update: 2013-07-24 21:21    [W:0.143 / U:18.824 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site