Merge branch 'ab/unbundle-progress'
Add progress display to "git bundle unbundle". * ab/unbundle-progress: bundle: show progress on "unbundle" index-pack: add --progress-title option bundle API: change "flags" to be "extra_index_pack_args" bundle API: start writing API documentation
This commit is contained in:
@ -122,6 +122,7 @@ static int strict;
|
||||
static int do_fsck_object;
|
||||
static struct fsck_options fsck_options = FSCK_OPTIONS_MISSING_GITMODULES;
|
||||
static int verbose;
|
||||
static const char *progress_title;
|
||||
static int show_resolving_progress;
|
||||
static int show_stat;
|
||||
static int check_self_contained_and_connected;
|
||||
@ -1153,6 +1154,7 @@ static void parse_pack_objects(unsigned char *hash)
|
||||
|
||||
if (verbose)
|
||||
progress = start_progress(
|
||||
progress_title ? progress_title :
|
||||
from_stdin ? _("Receiving objects") : _("Indexing objects"),
|
||||
nr_objects);
|
||||
for (i = 0; i < nr_objects; i++) {
|
||||
@ -1800,6 +1802,10 @@ int cmd_index_pack(int argc, const char **argv, const char *prefix)
|
||||
input_len = sizeof(*hdr);
|
||||
} else if (!strcmp(arg, "-v")) {
|
||||
verbose = 1;
|
||||
} else if (!strcmp(arg, "--progress-title")) {
|
||||
if (progress_title || (i+1) >= argc)
|
||||
usage(index_pack_usage);
|
||||
progress_title = argv[++i];
|
||||
} else if (!strcmp(arg, "--show-resolving-progress")) {
|
||||
show_resolving_progress = 1;
|
||||
} else if (!strcmp(arg, "--report-end-of-input")) {
|
||||
|
||||
Reference in New Issue
Block a user