Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-20 21:33:50 +0300
committerJunio C Hamano <gitster@pobox.com>2018-08-20 21:33:50 +0300
commit7d916990ba108ed78fec91bd201e7175c2110cb2 (patch)
treeda27d3161a7e6ad4428d5e028bee8921e9b3dacd /Documentation
parent13bf260ac743d8837f89c7a29b579caafb076a7c (diff)
parent388d0ff6e52d1d9f193db997a7f4ca1ee74e178f (diff)
Merge branch 'en/update-index-doc'
Doc update. * en/update-index-doc: git-update-index.txt: reword possibly confusing example
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-update-index.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt
index 4e8e762e68..a9753e6557 100644
--- a/Documentation/git-update-index.txt
+++ b/Documentation/git-update-index.txt
@@ -245,10 +245,10 @@ USING --CACHEINFO OR --INFO-ONLY
current working directory. This is useful for minimum-checkout
merging.
-To pretend you have a file with mode and sha1 at path, say:
+To pretend you have a file at path with mode and sha1, say:
----------------
-$ git update-index --cacheinfo <mode>,<sha1>,<path>
+$ git update-index --add --cacheinfo <mode>,<sha1>,<path>
----------------
`--info-only` is used to register files without placing them in the object