Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rj/prune-packed-excess-args'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 7 Mar 2019 00:59:55 +0000
(09:59 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 7 Mar 2019 00:59:55 +0000
(09:59 +0900)
"git prune-packed" did not notice and complain against excess
arguments given from the command line, which now it does.
* rj/prune-packed-excess-args:
prune-packed: check for too many arguments
builtin/prune-packed.c
patch
|
blob
|
history
raw
(from parent 1:
19ea722
)
diff --git
a/builtin/prune-packed.c
b/builtin/prune-packed.c
index a9e7b552b9d117c5f1078a0dd5864bbed724c6b6..48c5e78e339dbd32db255382f729ca2e65b514c5 100644
(file)
--- a/
builtin/prune-packed.c
+++ b/
builtin/prune-packed.c
@@
-63,6
+63,11
@@
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
argc = parse_options(argc, argv, prefix, prune_packed_options,
prune_packed_usage, 0);
+ if (argc > 0)
+ usage_msg_opt(_("too many arguments"),
+ prune_packed_usage,
+ prune_packed_options);
+
prune_packed_objects(opts);
return 0;
}