diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-03-24 18:56:17 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-03-24 10:16:52 -0700 |
commit | 16a86d432913db209214e03206c0ec7e14b8a562 (patch) | |
tree | 649f351090acda1cb562a43b0e0855dc3331edf5 /Documentation/git-apply.txt | |
parent | d725fbde4f4f0cf76ff060e5c044afad192d0a1a (diff) | |
download | git-16a86d432913db209214e03206c0ec7e14b8a562.tar.gz |
git-apply.txt: mention the behavior inside a subdirnd/apply-doc
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.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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, |