summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorWilliam Baker <William.Baker@microsoft.com>2019-10-21 18:39:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-23 03:05:05 (GMT)
commitefbc3aee08dfac70d426cca93cc5cfc0f14f8ee7 (patch)
treeba33438371bfc99a088d2833551348db4aef72a0 /builtin
parent12a4aeaad8aa2071f9b20f6ac87454c5f6d2d4fb (diff)
downloadgit-efbc3aee08dfac70d426cca93cc5cfc0f14f8ee7.zip
git-efbc3aee08dfac70d426cca93cc5cfc0f14f8ee7.tar.gz
git-efbc3aee08dfac70d426cca93cc5cfc0f14f8ee7.tar.bz2
midx: add MIDX_PROGRESS flag
Add the MIDX_PROGRESS flag and update the write|verify|expire|repack functions in midx.h to accept a flags parameter. The MIDX_PROGRESS flag indicates whether the caller of the function would like progress information to be displayed. This patch only changes the method prototypes and does not change the functionality. The functionality change will be handled by a later patch. Signed-off-by: William Baker <William.Baker@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/multi-pack-index.c8
-rw-r--r--builtin/repack.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/builtin/multi-pack-index.c b/builtin/multi-pack-index.c
index b1ea1a6..e86b8cd 100644
--- a/builtin/multi-pack-index.c
+++ b/builtin/multi-pack-index.c
@@ -47,16 +47,16 @@ int cmd_multi_pack_index(int argc, const char **argv,
trace2_cmd_mode(argv[0]);
if (!strcmp(argv[0], "repack"))
- return midx_repack(the_repository, opts.object_dir, (size_t)opts.batch_size);
+ return midx_repack(the_repository, opts.object_dir, (size_t)opts.batch_size, 0);
if (opts.batch_size)
die(_("--batch-size option is only for 'repack' subcommand"));
if (!strcmp(argv[0], "write"))
- return write_midx_file(opts.object_dir);
+ return write_midx_file(opts.object_dir, 0);
if (!strcmp(argv[0], "verify"))
- return verify_midx_file(the_repository, opts.object_dir);
+ return verify_midx_file(the_repository, opts.object_dir, 0);
if (!strcmp(argv[0], "expire"))
- return expire_midx_packs(the_repository, opts.object_dir);
+ return expire_midx_packs(the_repository, opts.object_dir, 0);
die(_("unrecognized subcommand: %s"), argv[0]);
}
diff --git a/builtin/repack.c b/builtin/repack.c
index 094c2f8..397081d 100644
--- a/builtin/repack.c
+++ b/builtin/repack.c
@@ -562,7 +562,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
remove_temporary_files();
if (git_env_bool(GIT_TEST_MULTI_PACK_INDEX, 0))
- write_midx_file(get_object_directory());
+ write_midx_file(get_object_directory(), 0);
string_list_clear(&names, 0);
string_list_clear(&rollback, 0);