Skip to content

Commit

Permalink
Documentation: use single-parameter --cacheinfo in example
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steffen Prohaska authored and Junio C Hamano committed Sep 11, 2014
1 parent c8e1ee4 commit 7ac92f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/git-update-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ac92f6

Please sign in to comment.