threads / patch / 37535

patchDocumentation: use single-parameter --cacheinfo in example

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

## tl;dr

2 messages between Sep 11, 2014 and Sep 11, 2014. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Steffen Prohaska· Sep 11, 2014, 15:19 UTC · lore

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(-)
Show changes to Documentation/git-update-index.txt +1 −1
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
Junio C Hamano· Sep 11, 2014, 17:35 UTC · re: Steffen Prohaska · lore

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

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

← back to recent threads