Skip to contentSkip to conversation

Documentation: improve git ls-files -s manpage entry

PATCH Superseded Mostyn Bramley-Moore 2 participants 4 messages Apr 1, 2017 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: improve git ls-files -s manpage entry

List the fields in order of appearance in the command output.

---
 Documentation/git-ls-files.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/git-ls-files.txt +2 -1
index 1cab703..a9149fc 100644
@@ -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
Signature · 1 line
2.9.3
#1 lore raw
Quoted 12 lines · Mostyn Bramley-Moore

List the fields in order of appearance in the command output.

---
 Documentation/git-ls-files.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/git-ls-files.txt +0 -0
index 1cab703..a9149fc 100644

Documentation/git-ls-files.txt OPTIONS · line 61

Quoted 6 lines
Documentation/git-ls-files.txt +2 -1
@@ -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".

Quoted 3 lines
Documentation/git-ls-files.txt +0 -0
 --directory::
 	If a whole directory is classified as "other", show just its
#2 lore raw

PATCH v2 1/1 Documentation: improve git ls-files -s manpage entry

List the fields in order of appearance in the command output.

---
 Documentation/git-ls-files.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/git-ls-files.txt +1 -1
index 1cab703..d153c17 100644
@@ -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
Signature · 1 line
2.9.3