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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 11, 2014, 17:35 UTC
Message-ID
<xmqqppf2dpr1.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1410448791-31514-1-git-send-email-prohaska@zib.de>
Steffen Prohaska <prohaska@zib.de> writes:
Show 6 quoted lines
> 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>
> ---
My fault.  Thanks for catching.
Show 16 quoted lines
>  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
Previous: Steffen Prohaska
Message 2 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.