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

[PATCH] git.c: rearrange git synopsis to fit in 80 columns

From
Kevin Bracey <kevin@bracey.fi>
Date
Mar 11, 2013, 20:44 UTC
Message-ID
<1363034650-14984-1-git-send-email-kevin@bracey.fi>
In-Reply-To
<1363031055-13562-1-git-send-email-kevin@bracey.fi>

Make the command line use the narrower synopsis layout that the man page has used since commit 68e4b55.

Signed-off-by: Kevin Bracey <kevin@bracey.fi>
---
 git.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git.c b/git.c
index d33f9b3..2a98624 100644
--- a/git.c
+++ b/git.c
@@ -6,10 +6,10 @@
 #include "run-command.h"
 
 const char git_usage_string[] =
-	"git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
+	"git [--version] [--help] [-c name=value]\n"
+	"           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
 	"           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n"
 	"           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
-	"           [-c name=value] [--help]\n"
 	"           <command> [<args>]";
 
 const char git_more_info_string[] =
-- 
1.8.2.rc3.7.g1100d09.dirty
Previous: Kevin Bracey
Message 4 of 4 in “git.c: make usage match manual page”
  1. git.c: make usage match manual pageKevin Bracey, Mar 11, 2013
  2. Junio C HamanoMar 11, 2013
  3. Kevin BraceyMar 11, 2013
  4. git.c: rearrange git synopsis to fit in 80 columnsKevin Bracey, Mar 11, 2013

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.