Documentation: use single-parameter --cacheinfo in example
authorSteffen Prohaska <prohaska@zib.de>
Thu, 11 Sep 2014 15:19:51 +0000 (17:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Sep 2014 17:38:02 +0000 (10:38 -0700)
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>
Documentation/git-update-index.txt
index d6de4a008ce74b9aa3f83035b4392e8d4505fae7..56626a005d4d2cb104a3ac8147d3d74b8d65b893 100644 (file)
@@ -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