summaryrefslogtreecommitdiff
path: root/Documentation/git-apply.txt
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-03-24 11:56:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-03-24 17:16:52 (GMT)
commit16a86d432913db209214e03206c0ec7e14b8a562 (patch)
tree649f351090acda1cb562a43b0e0855dc3331edf5 /Documentation/git-apply.txt
parentd725fbde4f4f0cf76ff060e5c044afad192d0a1a (diff)
downloadgit-16a86d432913db209214e03206c0ec7e14b8a562.zip
git-16a86d432913db209214e03206c0ec7e14b8a562.tar.gz
git-16a86d432913db209214e03206c0ec7e14b8a562.tar.bz2
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>
Diffstat (limited to 'Documentation/git-apply.txt')
-rw-r--r--Documentation/git-apply.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt
index 5444d2f..8ddb207 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,