summaryrefslogtreecommitdiff
path: root/builtin/bundle.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-09-18 23:52:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-09-19 18:07:21 (GMT)
commitbe042aff24c8a17565934874f5d2eebd77ab2562 (patch)
treec761ec5103a29119bd8d1ffded03c89d3d67e397 /builtin/bundle.c
parentec014eac0e9e6f30cbbca616090fa2ecf74797e7 (diff)
downloadgit-be042aff24c8a17565934874f5d2eebd77ab2562.zip
git-be042aff24c8a17565934874f5d2eebd77ab2562.tar.gz
git-be042aff24c8a17565934874f5d2eebd77ab2562.tar.bz2
Teach progress eye-candy to fetch_refs_from_bundle()
With the usual "git" transport, a large-ish transfer with "git fetch" and "git pull" give progress eye-candy to avoid boring users. However, not when they are reading from a bundle. I.e. $ git pull ../git-bundle.bndl master This teaches bundle.c:unbundle() to give "-v" option to index-pack and tell it to give progress bar when transport decides it is necessary. The operation in the other direction, "git bundle create", could also learn to honor --quiet but that is a separate issue. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/bundle.c')
-rw-r--r--builtin/bundle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/bundle.c b/builtin/bundle.c
index 81046a9..92a8a60 100644
--- a/builtin/bundle.c
+++ b/builtin/bundle.c
@@ -58,7 +58,7 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
} else if (!strcmp(cmd, "unbundle")) {
if (!startup_info->have_repository)
die(_("Need a repository to unbundle."));
- return !!unbundle(&header, bundle_fd) ||
+ return !!unbundle(&header, bundle_fd, 0) ||
list_bundle_refs(&header, argc, argv);
} else
usage(builtin_bundle_usage);