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

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

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 10, 2009, 16:13 UTC
Message-ID
<20090510161345.GA26327@blimp.localdomain>
Delayed negation in a statement is harder to spot and keep in mind.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 Documentation/git-ls-tree.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
index f68e5c5..8292059 100644
--- a/Documentation/git-ls-tree.txt
+++ b/Documentation/git-ls-tree.txt
@@ -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
-- 
1.6.3.28.ga852b
Next: Alex Riesen
Message 1 of 2 in “ls-tree manpage: use "unless" instead of "when ... is not"”
  1. 1/2 ls-tree manpage: use "unless" instead of "when ... is not"Alex Riesen, May 10, 2009
  2. 2/2 ls-tree manpage: output of ls-tree is compatible with update-indexAlex Riesen, May 10, 2009

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.