Merge branch 'en/update-index-doc'

Doc update.

* en/update-index-doc:
  git-update-index.txt: reword possibly confusing example
This commit is contained in:
Junio C Hamano 2018-08-20 11:33:50 -07:00
Родитель 13bf260ac7 388d0ff6e5
Коммит 7d916990ba
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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