Skip to content

Commit 7d91699

Browse files
committed
Merge branch 'en/update-index-doc'
Doc update. * en/update-index-doc: git-update-index.txt: reword possibly confusing example
2 parents 13bf260 + 388d0ff commit 7d91699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-update-index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ USING --CACHEINFO OR --INFO-ONLY
245245
current working directory. This is useful for minimum-checkout
246246
merging.
247247

248-
To pretend you have a file with mode and sha1 at path, say:
248+
To pretend you have a file at path with mode and sha1, say:
249249

250250
----------------
251-
$ git update-index --cacheinfo <mode>,<sha1>,<path>
251+
$ git update-index --add --cacheinfo <mode>,<sha1>,<path>
252252
----------------
253253

254254
`--info-only` is used to register files without placing them in the object

0 commit comments

Comments
 (0)