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

[PATCH] builtin-fetch: Add "-q" as a synonym for "--quiet"

From
Steven Grimm <koreth@midwinter.com>
Date
Nov 4, 2007, 02:26 UTC
Message-ID
<1194143214-25980-1-git-send-email-koreth@midwinter.com>

"-q" is the very first option described in the git-fetch manpage, and it isn't supported.

Signed-off-by: Steven Grimm <koreth@midwinter.com>
---
 builtin-fetch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 003ed76..8e79055 100644
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
@@ -517,7 +517,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
 			depth = argv[i];
 			continue;
 		}
-		if (!strcmp(arg, "--quiet")) {
+		if (!strcmp(arg, "--quiet") || !strcmp(arg, "-q")) {
 			quiet = 1;
 			continue;
 		}
-- 
1.5.3.5.529.ge3d6d-dirty
Message 1 of 1 in “builtin-fetch: Add "-q" as a synonym for "--quiet"”
  1. builtin-fetch: Add "-q" as a synonym for "--quiet"Steven Grimm, Nov 4, 2007

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.