Merge branch 'js/range-diff'
[gitweb.git] / Documentation / git-update-index.txt
index c62a6836480fc03caebef2209a00b769ad0862a9..1c4d146a41ce091755b2e4baef0fa79f45a4b515 100644 (file)
@@ -245,10 +245,10 @@ USING --CACHEINFO OR --INFO-ONLY
 current working directory.  This is useful for minimum-checkout
 merging.
 
-To pretend you have a file with mode and sha1 at path, say:
+To pretend you have a file at path with mode and sha1, say:
 
 ----------------
-$ git update-index --cacheinfo <mode>,<sha1>,<path>
+$ git update-index --add --cacheinfo <mode>,<sha1>,<path>
 ----------------
 
 `--info-only` is used to register files without placing them in the object