git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Making git apply always work relative to current directory
@ 2016-03-05 18:11 brian m. carlson
  2016-03-05 19:31 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: brian m. carlson @ 2016-03-05 18:11 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

I have a piece of software which must run out of a given directory.  In
development, this is a git repository, and in production it is not.  I
also have an ignored subdirectory where I would like to use git apply to
apply patches (in both environments).

If I run git apply --no-index --verbose <patch>, it succeeds in both
cases, but when I'm in the git repository, it *silently does nothing*.
I have to provide a --directory argument in order for it to function
underneath the repository, but of course that doesn't work when the
directory isn't within a repository.  --unsafe-paths did not seem to
make a difference.  I'm using Git 2.7.2.

Is there a way to tell git apply that it should apply relative to the
current working directory, no matter what?  I'm happy to send a patch to
either the documentation or git apply if necessary.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2016-03-05 19:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-05 18:11 Making git apply always work relative to current directory brian m. carlson
2016-03-05 19:31 ` Junio C Hamano
2016-03-05 19:42   ` brian m. carlson

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).