git-apply.txt: mention the behavior inside a subdir
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Mar 24, 2016 at 18:56 UTC
16a86d432913db209214e03206c0ec7e14b8a562
1 file changed
+2
Documentation/git-apply.txt
+2
@@ -21,6 +21,8 @@ SYNOPSIS
21
DESCRIPTION
22
-----------
23
Reads the supplied diff output (i.e. "a patch") and applies it to files.
24
+When running from a subdirectory in a repository, patched paths
25
+outside the directory are ignored.
26
With the `--index` option the patch is also applied to the index, and
27
with the `--cached` option the patch is only applied to the index.
28
Without these options, the command applies the patch only to files,