From: Nguyễn Thái Ngọc Duy Date: Thu, 24 Mar 2016 11:56:17 +0000 (+0700) Subject: git-apply.txt: mention the behavior inside a subdir X-Git-Tag: v2.8.2~30^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16a86d432913db209214e03206c0ec7e14b8a562;p=thirdparty%2Fgit.git git-apply.txt: mention the behavior inside a subdir Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt index 5444d2ffeb..8ddb207409 100644 --- a/Documentation/git-apply.txt +++ b/Documentation/git-apply.txt @@ -21,6 +21,8 @@ SYNOPSIS DESCRIPTION ----------- Reads the supplied diff output (i.e. "a patch") and applies it to files. +When running from a subdirectory in a repository, patched paths +outside the directory are ignored. With the `--index` option the patch is also applied to the index, and with the `--cached` option the patch is only applied to the index. Without these options, the command applies the patch only to files,