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 <junkio@cox.net>
Junio C Hamano committed
Dec 18, 2005 at 01:55 UTC
2247efb40b304f158b9ab41455bd711366a44f57
2 files changed
+2
-4
clone-pack.c
-2
@@ -160,8 +160,6 @@ int main(int argc, char **argv)
160
exec = arg + 7;
161
continue;
162
}
163
- if (!strcmp("--keep", arg))
164
- continue;
163
usage(clone_pack_usage);
164
}
165
dest = arg;
fetch-pack.c
+2
-2
@@ -416,11 +416,11 @@ int main(int argc, char **argv)
416
exec = arg + 7;
417
continue;
418
}
419
- if (!strcmp("-q", arg)) {
419
+ if (!strcmp("--quiet", arg) || !strcmp("-q", arg)) {
420
quiet = 1;
421
continue;
422
}
423
- if (!strcmp("-k", arg)) {
423
+ if (!strcmp("--keep", arg) || !strcmp("-k", arg)) {
424
keep_pack = 1;
425
continue;
426
}