From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: git@vger.kernel.org
Subject: Making git apply always work relative to current directory
Date: Sat, 5 Mar 2016 18:11:25 +0000 [thread overview]
Message-ID: <20160305181125.GA48536@vauxhall.crustytoothpaste.net> (raw)
[-- 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 --]
next reply other threads:[~2016-03-05 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-05 18:11 brian m. carlson [this message]
2016-03-05 19:31 ` Making git apply always work relative to current directory Junio C Hamano
2016-03-05 19:42 ` brian m. carlson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160305181125.GA48536@vauxhall.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).