Files
git/Documentation
Junio C Hamano c536c0755f apply: reject input that touches outside the working area
By default, a patch that affects outside the working area (either a
Git controlled working tree, or the current working directory when
"git apply" is used as a replacement of GNU patch) is rejected as a
mistake (or a mischief).  Git itself does not create such a patch,
unless the user bends over backwards and specifies a non-standard
prefix to "git diff" and friends.

When `git apply` is used as a "better GNU patch", the user can pass
the `--unsafe-paths` option to override this safety check. This
option has no effect when `--index` or `--cached` is in use.

The new test was stolen from Jeff King with slight enhancements.
Note that a few new tests for touching outside the working area by
following a symbolic link are still expected to fail at this step,
but will be fixed in later steps.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-02-10 13:40:20 -08:00
..
2014-12-17 11:18:45 -08:00
2013-07-22 16:06:48 -07:00
2013-02-14 10:29:01 -08:00
2013-09-17 11:42:51 -07:00
2013-09-04 12:23:25 -07:00
2012-06-19 11:35:19 -07:00
2013-09-09 14:50:36 -07:00
2013-10-23 13:21:31 -07:00
2013-09-17 11:42:51 -07:00
2011-09-06 11:42:12 -07:00
2013-05-29 14:23:04 -07:00
2013-04-12 12:00:52 -07:00
2013-10-18 13:50:12 -07:00
2011-03-11 10:59:16 -05:00
2013-04-12 12:00:52 -07:00
2014-12-17 11:18:45 -08:00
2013-10-22 11:23:31 -07:00
2013-06-09 13:45:32 -07:00
2013-07-22 16:06:48 -07:00
2013-09-20 12:38:10 -07:00
2013-09-17 11:42:54 -07:00