Skip to contentSkip to conversation

ls-tree manpage: use "unless" instead of "when ... is not"

PATCH New Alex Riesen 1 participant 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ls-tree manpage: use "unless" instead of "when ... is not"

Delayed negation in a statement is harder to spot and keep in mind.

---
 Documentation/git-ls-tree.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/git-ls-tree.txt +1 -1
index f68e5c5..8292059 100644
@@ -82,7 +82,7 @@ Output Format
 -------------
         <mode> SP <type> SP <object> TAB <file>
 
-When the `-z` option is not used, TAB, LF, and backslash characters
+Unless the `-z` option is used, TAB, LF, and backslash characters
 in pathnames are represented as `\t`, `\n`, and `\\`, respectively.
 
 When the `-l` option is used, format changes to
Signature · 1 line
1.6.3.28.ga852b
#1 lore raw

PATCH 2/2 ls-tree manpage: output of ls-tree is compatible with update-index

Such format relationships are very useful things to remember for script writers.

---
 Documentation/git-ls-tree.txt |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Documentation/git-ls-tree.txt +2 -0
index 8292059..c3fdccb 100644
@@ -84,6 +84,8 @@ Output Format
 
 Unless the `-z` option is used, TAB, LF, and backslash characters
 in pathnames are represented as `\t`, `\n`, and `\\`, respectively.
+This output format is compatible with what '--index-info --stdin' of
+'git update-index' expects.
 
 When the `-l` option is used, format changes to
 
Signature · 1 line
1.6.3.28.ga852b