builtin-fetch: Add "-q" as a synonym for "--quiet"
authorSteven Grimm <koreth@midwinter.com>
Sun, 4 Nov 2007 02:26:54 +0000 (19:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 Nov 2007 04:37:30 +0000 (21:37 -0700)
"-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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c

index 003ed76d16236ec6857a19d6223518e6e73bdc93..8e790552cd962a1a35c9a5b9b46f7b1ac049d56f 100644 (file)
@@ -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;
                }