summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2014-09-11 17:19:51 +0200
committerJunio C Hamano <gitster@pobox.com>2014-09-11 10:38:02 -0700
commit7ac92f64ddb735052993640d26aad4cd7886b183 (patch)
tree0414e8672cc331c0fd6fff49bb7a849528871447
parentc8e1ee4f2c8e28b7eef824248f09ba37599593d7 (diff)
downloadgit-sp/doc-update-index-cacheinfo.tar.gz
Documentation: use single-parameter --cacheinfo in examplesp/doc-update-index-cacheinfo
The single-parameter form is described as the preferred way. Separate arguments are only supported for backward compatibility. Update the example to the recommended form. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-update-index.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt
index d6de4a008c..56626a005d 100644
--- a/Documentation/git-update-index.txt
+++ b/Documentation/git-update-index.txt
@@ -191,7 +191,7 @@ merging.
To pretend you have a file with mode and sha1 at path, say:
----------------
-$ git update-index --cacheinfo mode sha1 path
+$ git update-index --cacheinfo <mode>,<sha1>,<path>
----------------
'--info-only' is used to register files without placing them in the object