git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: use single-parameter --cacheinfo in example

From
Steffen Prohaska <prohaska@zib.de>
Date
Sep 11, 2014, 15:19 UTC
Message-ID
<1410448791-31514-1-git-send-email-prohaska@zib.de>

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>
---
 Documentation/git-update-index.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt
index dfc09d9..82eca6f 100644
--- a/Documentation/git-update-index.txt
+++ b/Documentation/git-update-index.txt
@@ -202,7 +202,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
-- 
2.1.0.137.gbf198b9
Next: Junio C Hamano
Message 1 of 2 in “Documentation: use single-parameter --cacheinfo in example”
  1. Documentation: use single-parameter --cacheinfo in exampleSteffen Prohaska, Sep 11, 2014
  2. Junio C HamanoSep 11, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.