diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-18 16:52:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-19 11:07:21 -0700 |
commit | be042aff24c8a17565934874f5d2eebd77ab2562 (patch) | |
tree | c761ec5103a29119bd8d1ffded03c89d3d67e397 /bundle.h | |
parent | ec014eac0e9e6f30cbbca616090fa2ecf74797e7 (diff) | |
download | git-be042aff24c8a17565934874f5d2eebd77ab2562.tar.gz git-be042aff24c8a17565934874f5d2eebd77ab2562.tar.xz |
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 'bundle.h')
-rw-r--r-- | bundle.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,8 @@ int read_bundle_header(const char *path, struct bundle_header *header); int create_bundle(struct bundle_header *header, const char *path, int argc, const char **argv); int verify_bundle(struct bundle_header *header, int verbose); -int unbundle(struct bundle_header *header, int bundle_fd); +#define BUNDLE_VERBOSE 1 +int unbundle(struct bundle_header *header, int bundle_fd, int flags); int list_bundle_refs(struct bundle_header *header, int argc, const char **argv); |