threads / patch / 45579

patchDocumentation: improve git ls-files -s manpage entry

Subject: [PATCH] Documentation: improve git ls-files -s manpage entry

## tl;dr

4 messages between Apr 1, 2017 and Apr 1, 2017. Diffs are folded; open one to read it.

replies: 3people: 2as markdown or json

Mostyn Bramley-Moore· Mar 31, 2017, 19:47 UTC · lore
List the fields in order of appearance in the command output.
Signed-off-by: Mostyn Bramley-Moore <mostyn@antipode.se>
---
 Documentation/git-ls-files.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Show changes to Documentation/git-ls-files.txt +2 −1
diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index 1cab703..a9149fc 100644
--- a/Documentation/git-ls-files.txt
+++ b/Documentation/git-ls-files.txt
@@ -57,7 +57,8 @@ OPTIONS
 
 -s::
 --stage::
-	Show staged contents' object name, mode bits and stage number in the output.
+	Show staged contents' mode bits, hash, stage number as well as the
+	object name in the output.
 
 --directory::
 	If a whole directory is classified as "other", show just its
-- 
2.9.3
Junio C Hamano· Apr 1, 2017, 02:21 UTC · re: Mostyn Bramley-Moore · lore

Re: [PATCH] Documentation: improve git ls-files -s manpage entry

Mostyn Bramley-Moore <mostyn@antipode.se> writes:
Show 18 quoted lines
> List the fields in order of appearance in the command output.
>
> Signed-off-by: Mostyn Bramley-Moore <mostyn@antipode.se>
> ---
>  Documentation/git-ls-files.txt | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
> index 1cab703..a9149fc 100644
> --- a/Documentation/git-ls-files.txt
> +++ b/Documentation/git-ls-files.txt
> @@ -57,7 +57,8 @@ OPTIONS
>  
>  -s::
>  --stage::
> -	Show staged contents' object name, mode bits and stage number in the output.
> +	Show staged contents' mode bits, hash, stage number as well as the
> +	object name in the output.

This is not an improvement, as the word "hash" is merely a colloquial way to say what is officially known as "object name".

If the patch were only to swap "mode bits" and "object name" without doing anything else, it may have been an improvement, though. It is implied that the path the output line talks about is shown, and that is why we do not say "mode bits, object name, stage number and the pathname".

>  
>  --directory::
>  	If a whole directory is classified as "other", show just its
Mostyn Bramley-Moore· Apr 1, 2017, 07:08 UTC · re: Junio C Hamano · lore

[PATCH v2] Documentation: improve git ls-files -s manpage entry

List the fields in order of appearance in the command output.
Signed-off-by: Mostyn Bramley-Moore <mostyn@antipode.se>
---
 Documentation/git-ls-files.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to Documentation/git-ls-files.txt +1 −1
diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index 1cab703..d153c17 100644
--- a/Documentation/git-ls-files.txt
+++ b/Documentation/git-ls-files.txt
@@ -57,7 +57,7 @@ OPTIONS
 
 -s::
 --stage::
-	Show staged contents' object name, mode bits and stage number in the output.
+	Show staged contents' mode bits, object name and stage number in the output.
 
 --directory::
 	If a whole directory is classified as "other", show just its
-- 
2.9.3

← back to recent threads