summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-08 21:29:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-08 21:29:12 (GMT)
commitefe778c5ceebdbb67147b4ce633bd268e0afe409 (patch)
tree1353e3d1d000f14738bca47424ba269bd60629e4 /Documentation
parentd04aa7ec4738f90220b9e205326f17938b8f89d4 (diff)
parent16a86d432913db209214e03206c0ec7e14b8a562 (diff)
downloadgit-efe778c5ceebdbb67147b4ce633bd268e0afe409.zip
git-efe778c5ceebdbb67147b4ce633bd268e0afe409.tar.gz
git-efe778c5ceebdbb67147b4ce633bd268e0afe409.tar.bz2
Merge branch 'nd/apply-doc'
A minor documentation update. * nd/apply-doc: git-apply.txt: mention the behavior inside a subdir git-apply.txt: remove a space
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-apply.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt
index d9ed6a1..8ddb207 100644
--- a/Documentation/git-apply.txt
+++ b/Documentation/git-apply.txt
@@ -13,7 +13,7 @@ SYNOPSIS
[--apply] [--no-add] [--build-fake-ancestor=<file>] [-R | --reverse]
[--allow-binary-replacement | --binary] [--reject] [-z]
[-p<n>] [-C<n>] [--inaccurate-eof] [--recount] [--cached]
- [--ignore-space-change | --ignore-whitespace ]
+ [--ignore-space-change | --ignore-whitespace]
[--whitespace=(nowarn|warn|fix|error|error-all)]
[--exclude=<path>] [--include=<path>] [--directory=<root>]
[--verbose] [--unsafe-paths] [<patch>...]
@@ -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,