threads / patch / 10628

patchbuiltin-fetch: Add "-q" as a synonym for "--quiet"

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

## tl;dr

One message between Nov 4, 2007 and Nov 4, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Steven Grimm· Nov 4, 2007, 02:26 UTC · lore

"-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(-)
Show changes to builtin-fetch.c +1 −1
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

← back to recent threads