From: Steffen Prohaska Date: Thu, 11 Sep 2014 15:19:51 +0000 (+0200) Subject: Documentation: use single-parameter --cacheinfo in example X-Git-Tag: v2.2.0-rc0~102^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ac92f64ddb735052993640d26aad4cd7886b183;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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 ,, ---------------- '--info-only' is used to register files without placing them in the object