summaryrefslogtreecommitdiff
path: root/builtin-fetch.c
diff options
context:
space:
mode:
authorSteven Grimm <koreth@midwinter.com>2007-11-03 19:26:54 -0700
committerJunio C Hamano <gitster@pobox.com>2007-11-03 21:37:30 -0700
commit4b7bbdd14c6b926fbb0dbd203ce02e150b308694 (patch)
tree69e96570e5e8a105a171c087f78ade14052b07ae /builtin-fetch.c
parent00ae82895e7f30e52ff12edc1076409c7c53d99e (diff)
downloadgit-4b7bbdd14c6b926fbb0dbd203ce02e150b308694.tar.gz
builtin-fetch: Add "-q" as a synonym for "--quiet"
"-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>
Diffstat (limited to 'builtin-fetch.c')
-rw-r--r--builtin-fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 003ed76d16..8e790552cd 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;
}