summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Steffen Prohaska <prohaska@zib.de>2014-09-11 17:19:51 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-11 10:38:02 -0700
commit7ac92f64ddb735052993640d26aad4cd7886b183 (patch)
tree0414e8672cc331c0fd6fff49bb7a849528871447 /Documentation
parentupdate-index: fix segfault with missing --cacheinfo argument (diff)
downloadtgif-7ac92f64ddb735052993640d26aad4cd7886b183.tar.xz
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>
Diffstat (limited to 'Documentation')
-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