Using git apply inside a repository but on un-tracked files

From: Orion Poplawski <hidden>
Date: 2016-06-15 22:53:48

I'm a Fedora package which tracks the the package files in git.  When the 
package source is unpacked it is unpacked under the git directory, however 
these files are not tracked by git.

I tried to use git apply to apply a patch (because it is coming mercurial and 
has diff --git rename info in it) to the package source.  However, the 
presence of a .git repo in the parent tree caused git apply to refuse to apply 
the patch, unfortunately silently without any complaint or error return code, 
even with --verbose.  I got it to work by passing the  appropriate --directory 
option, but this took me a long time to figure out due to the lack of a 
warning messages.  Could one be added please?  Perhaps like in the attached patch?

TIA,

  Orion

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       orion@nwra.com
Boulder, CO 80301                   http://www.nwra.com

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help