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

[PATCH 1/2] help.h: fix coding style

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Dec 11, 2018, 14:58 UTC
Message-ID
<9dcaace5075fd83463d9c3d57bc51123fdd1568d.1544540287.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.97.git.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
We want a space after the `while` keyword.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 help.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/help.h b/help.h
index 9eab6a3f89..a141e209ae 100644
--- a/help.h
+++ b/help.h
@@ -15,7 +15,7 @@ struct cmdnames {
 
 static inline void mput_char(char c, unsigned int num)
 {
-	while(num--)
+	while (num--)
 		putchar(c);
 }
 
-- 
gitgitgadget
Previous: Johannes Schindelin via GitGitGadgetNext: Johannes Schindelin via GitGitGadget
Message 2 of 4 in “Fix git help -a with long alias names”
  1. 0/2 Fix git help -a with long alias namesJohannes Schindelin via GitGitGadget, Dec 11, 2018
  2. 1/2 help.h: fix coding styleJohannes Schindelin via GitGitGadget, Dec 11, 2018
  3. 2/2 help -a: handle aliases with long names gracefullyJohannes Schindelin via GitGitGadget, Dec 11, 2018
  4. Junio C HamanoDec 12, 2018

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.