summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-04-08 14:29:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-08 14:29:12 -0700
commitefe778c5ceebdbb67147b4ce633bd268e0afe409 (patch)
tree1353e3d1d000f14738bca47424ba269bd60629e4 /Documentation
parentMerge branch 'jc/merge-refuse-new-root' (diff)
parentgit-apply.txt: mention the behavior inside a subdir (diff)
downloadtgif-efe778c5ceebdbb67147b4ce633bd268e0afe409.tar.xz
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 d9ed6a1a4e..8ddb207409 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,