Skip to content

Commit

Permalink
builtin-fetch: Add "-q" as a synonym for "--quiet"
Browse files Browse the repository at this point in the history
"-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>
  • Loading branch information
Steven Grimm authored and Junio C Hamano committed Nov 4, 2007
1 parent 00ae828 commit 4b7bbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b7bbdd

Please sign in to comment.