Merge branch 'ps/parse-options-integers'
Update parse-options API to catch mistakes to pass address of an integral variable of a wrong type/size. * ps/parse-options-integers: parse-options: detect mismatches in integer signedness parse-options: introduce precision handling for `OPTION_UNSIGNED` parse-options: introduce precision handling for `OPTION_INTEGER` parse-options: rename `OPT_MAGNITUDE()` to `OPT_UNSIGNED()` parse-options: support unit factors in `OPT_INTEGER()` global: use designated initializers for options parse: fix off-by-one for minimum signed values
This commit is contained in:
@@ -4488,16 +4488,16 @@ int cmd_pack_objects(int argc,
|
||||
OPT_CALLBACK_F(0, "index-version", &pack_idx_opts, N_("<version>[,<offset>]"),
|
||||
N_("write the pack index file in the specified idx format version"),
|
||||
PARSE_OPT_NONEG, option_parse_index_version),
|
||||
OPT_MAGNITUDE(0, "max-pack-size", &pack_size_limit,
|
||||
N_("maximum size of each output pack file")),
|
||||
OPT_UNSIGNED(0, "max-pack-size", &pack_size_limit,
|
||||
N_("maximum size of each output pack file")),
|
||||
OPT_BOOL(0, "local", &local,
|
||||
N_("ignore borrowed objects from alternate object store")),
|
||||
OPT_BOOL(0, "incremental", &incremental,
|
||||
N_("ignore packed objects")),
|
||||
OPT_INTEGER(0, "window", &window,
|
||||
N_("limit pack window by objects")),
|
||||
OPT_MAGNITUDE(0, "window-memory", &window_memory_limit,
|
||||
N_("limit pack window by memory in addition to object limit")),
|
||||
OPT_UNSIGNED(0, "window-memory", &window_memory_limit,
|
||||
N_("limit pack window by memory in addition to object limit")),
|
||||
OPT_INTEGER(0, "depth", &depth,
|
||||
N_("maximum length of delta chain allowed in the resulting pack")),
|
||||
OPT_BOOL(0, "reuse-delta", &reuse_delta,
|
||||
|
||||
Reference in New Issue
Block a user