summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2014-09-11 15:19:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-11 17:38:02 (GMT)
commit7ac92f64ddb735052993640d26aad4cd7886b183 (patch)
tree0414e8672cc331c0fd6fff49bb7a849528871447
parentc8e1ee4f2c8e28b7eef824248f09ba37599593d7 (diff)
downloadgit-7ac92f64ddb735052993640d26aad4cd7886b183.zip
git-7ac92f64ddb735052993640d26aad4cd7886b183.tar.gz
git-7ac92f64ddb735052993640d26aad4cd7886b183.tar.bz2
Documentation: use single-parameter --cacheinfo in example
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 d6de4a0..56626a0 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