Skip to content

Commit 2247efb

Browse files
author
Junio C Hamano
committed
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 <[email protected]>
1 parent ad89721 commit 2247efb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clone-pack.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ int main(int argc, char **argv)
160160
exec = arg + 7;
161161
continue;
162162
}
163-
if (!strcmp("--keep", arg))
164-
continue;
165163
usage(clone_pack_usage);
166164
}
167165
dest = arg;

fetch-pack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ int main(int argc, char **argv)
416416
exec = arg + 7;
417417
continue;
418418
}
419-
if (!strcmp("-q", arg)) {
419+
if (!strcmp("--quiet", arg) || !strcmp("-q", arg)) {
420420
quiet = 1;
421421
continue;
422422
}
423-
if (!strcmp("-k", arg)) {
423+
if (!strcmp("--keep", arg) || !strcmp("-k", arg)) {
424424
keep_pack = 1;
425425
continue;
426426
}

0 commit comments

Comments
 (0)