From: Junio C Hamano Date: Sun, 18 Dec 2005 09:55:29 +0000 (-0800) Subject: clone-pack: remove unused and undocumented --keep flag X-Git-Tag: v1.0.0^2~20 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=2247efb40b304f158b9ab41455bd711366a44f57;p=git.git clone-pack: remove unused and undocumented --keep flag While we are at it, give fully spelled --keep to fetch-pack. Also give --quiet in addition to -q to fetch-pack as well. Signed-off-by: Junio C Hamano --- diff --git a/clone-pack.c b/clone-pack.c index 03dbc2ea..f634431b 100644 --- a/clone-pack.c +++ b/clone-pack.c @@ -160,8 +160,6 @@ int main(int argc, char **argv) exec = arg + 7; continue; } - if (!strcmp("--keep", arg)) - continue; usage(clone_pack_usage); } dest = arg; diff --git a/fetch-pack.c b/fetch-pack.c index 2528053f..d34f3224 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -416,11 +416,11 @@ int main(int argc, char **argv) exec = arg + 7; continue; } - if (!strcmp("-q", arg)) { + if (!strcmp("--quiet", arg) || !strcmp("-q", arg)) { quiet = 1; continue; } - if (!strcmp("-k", arg)) { + if (!strcmp("--keep", arg) || !strcmp("-k", arg)) { keep_pack = 1; continue; }