#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "lockfile.h"
#include "bundle.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-store-ll.h"
#include "repository.h"
#include "object.h"
#include "commit.h"
#include "diff.h"
#include "revision.h"
#include "list-objects.h"
#include "run-command.h"
#include "refs.h"
#include "strvec.h"
#include "list-objects-filter-options.h"
#include "connected.h"
#include "write-or-die.h"
static const char v2_bundle_signature[] = …;
static const char v3_bundle_signature[] = …;
static struct { … } bundle_sigs[] = …;
void bundle_header_init(struct bundle_header *header)
{ … }
void bundle_header_release(struct bundle_header *header)
{ … }
static int parse_capability(struct bundle_header *header, const char *capability)
{ … }
static int parse_bundle_signature(struct bundle_header *header, const char *line)
{ … }
int read_bundle_header_fd(int fd, struct bundle_header *header,
const char *report_path)
{ … }
int read_bundle_header(const char *path, struct bundle_header *header)
{ … }
int is_bundle(const char *path, int quiet)
{ … }
static int list_refs(struct string_list *r, int argc, const char **argv)
{ … }
#define PREREQ_MARK …
struct string_list_iterator { … };
static const struct object_id *iterate_ref_map(void *cb_data)
{ … }
int verify_bundle(struct repository *r,
struct bundle_header *header,
enum verify_bundle_flags flags)
{ … }
int list_bundle_refs(struct bundle_header *header, int argc, const char **argv)
{ … }
static int is_tag_in_date_range(struct object *tag, struct rev_info *revs)
{ … }
static int write_pack_data(int bundle_fd, struct rev_info *revs, struct strvec *pack_options)
{ … }
static int write_bundle_refs(int bundle_fd, struct rev_info *revs)
{ … }
struct bundle_prerequisites_info { … };
static void write_bundle_prerequisites(struct commit *commit, void *data)
{ … }
int create_bundle(struct repository *r, const char *path,
int argc, const char **argv, struct strvec *pack_options, int version)
{ … }
int unbundle(struct repository *r, struct bundle_header *header,
int bundle_fd, struct strvec *extra_index_pack_args,
enum verify_bundle_flags flags)
{ … }