diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-29 15:35:24 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-10 13:40:20 -0800 |
commit | c536c0755f6450b7bcce499cfda171f8c6d1e593 (patch) | |
tree | 16e7272d8411592c0743e08182823d7084d42c36 /t/t4035-diff-quiet.sh | |
parent | Merge branch 'jk/dotgit-case-maint-1.8.5' into maint-1.8.5 (diff) | |
download | tgif-c536c0755f6450b7bcce499cfda171f8c6d1e593.tar.xz |
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>
Diffstat (limited to 't/t4035-diff-quiet.sh')
0 files changed, 0 insertions, 0 deletions