mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
79862b6b77
Support the progress output options from pack-objects in git-bundle's create subcommand. Most notably, this provides --quiet as requested on the git mailing list per [1] Reference: https://www.mail-archive.com/git@vger.kernel.org/msg182844.html <robbat2-20190806T191156-796782357Z@orbis-terrarum.net> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
32 lines
826 B
C
32 lines
826 B
C
#ifndef BUNDLE_H
|
|
#define BUNDLE_H
|
|
|
|
#include "argv-array.h"
|
|
#include "cache.h"
|
|
|
|
struct ref_list {
|
|
unsigned int nr, alloc;
|
|
struct ref_list_entry {
|
|
struct object_id oid;
|
|
char *name;
|
|
} *list;
|
|
};
|
|
|
|
struct bundle_header {
|
|
struct ref_list prerequisites;
|
|
struct ref_list references;
|
|
};
|
|
|
|
int is_bundle(const char *path, int quiet);
|
|
int read_bundle_header(const char *path, struct bundle_header *header);
|
|
int create_bundle(struct repository *r, const char *path,
|
|
int argc, const char **argv, struct argv_array *pack_options);
|
|
int verify_bundle(struct repository *r, struct bundle_header *header, int verbose);
|
|
#define BUNDLE_VERBOSE 1
|
|
int unbundle(struct repository *r, struct bundle_header *header,
|
|
int bundle_fd, int flags);
|
|
int list_bundle_refs(struct bundle_header *header,
|
|
int argc, const char **argv);
|
|
|
|
#endif
|