@@ -65,6 +65,8 @@ static int cmd_multi_pack_index_write(int argc, const char **argv)
{
struct option *options = common_opts;
+ trace2_cmd_mode(argv[0]);
+
argc = parse_options(argc, argv, NULL,
options, builtin_multi_pack_index_write_usage,
PARSE_OPT_KEEP_UNKNOWN);
@@ -79,6 +81,8 @@ static int cmd_multi_pack_index_verify(int argc, const char **argv)
{
struct option *options = common_opts;
+ trace2_cmd_mode(argv[0]);
+
argc = parse_options(argc, argv, NULL,
options, builtin_multi_pack_index_verify_usage,
PARSE_OPT_KEEP_UNKNOWN);
@@ -93,6 +97,8 @@ static int cmd_multi_pack_index_expire(int argc, const char **argv)
{
struct option *options = common_opts;
+ trace2_cmd_mode(argv[0]);
+
argc = parse_options(argc, argv, NULL,
options, builtin_multi_pack_index_expire_usage,
PARSE_OPT_KEEP_UNKNOWN);
@@ -115,6 +121,8 @@ static int cmd_multi_pack_index_repack(int argc, const char **argv)
options = parse_options_dup(builtin_multi_pack_index_repack_options);
options = add_common_options(options);
+ trace2_cmd_mode(argv[0]);
+
argc = parse_options(argc, argv, NULL,
options,
builtin_multi_pack_index_repack_usage,
@@ -148,8 +156,6 @@ int cmd_multi_pack_index(int argc, const char **argv,
usage_with_options(builtin_multi_pack_index_usage,
builtin_multi_pack_index_options);
- trace2_cmd_mode(argv[0]);
-
if (!strcmp(argv[0], "repack"))
return cmd_multi_pack_index_repack(argc, argv);
else if (!strcmp(argv[0], "write"))