summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-08-31 22:49:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-31 22:49:51 (GMT)
commit1393f56f4a467b5687106bbb750544437359de52 (patch)
tree40df7c85a7bcab2be3e7e3e5fbc2b01f206ad43a
parentc57afd73efcf0df974515eb97a6b1ee375107c71 (diff)
parentd064702be39d974d0eee403f4fbae92f8f0534a7 (diff)
downloadgit-1393f56f4a467b5687106bbb750544437359de52.zip
git-1393f56f4a467b5687106bbb750544437359de52.tar.gz
git-1393f56f4a467b5687106bbb750544437359de52.tar.bz2
Merge branch 'rp/apply-cached-doc'
The description of --cached/--index options in "git apply --help" has been updated. * rp/apply-cached-doc: git-apply.txt: update descriptions of --cached, --index
-rw-r--r--Documentation/git-apply.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt
index b9aa390..91d9a86 100644
--- a/Documentation/git-apply.txt
+++ b/Documentation/git-apply.txt
@@ -61,18 +61,18 @@ OPTIONS
file and detects errors. Turns off "apply".
--index::
- When `--check` is in effect, or when applying the patch
- (which is the default when none of the options that
- disables it is in effect), make sure the patch is
- applicable to what the current index file records. If
- the file to be patched in the working tree is not
- up to date, it is flagged as an error. This flag also
- causes the index file to be updated.
+ Apply the patch to both the index and the working tree (or
+ merely check that it would apply cleanly to both if `--check` is
+ in effect). Note that `--index` expects index entries and
+ working tree copies for relevant paths to be identical (their
+ contents and metadata such as file mode must match), and will
+ raise an error if they are not, even if the patch would apply
+ cleanly to both the index and the working tree in isolation.
--cached::
- Apply a patch without touching the working tree. Instead take the
- cached data, apply the patch, and store the result in the index
- without using the working tree. This implies `--index`.
+ Apply the patch to just the index, without touching the working
+ tree. If `--check` is in effect, merely check that it would
+ apply cleanly to the index entry.
--intent-to-add::
When applying the patch only to the working tree, mark new