diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-10-31 02:04:43 +0100 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-10-31 02:04:44 +0100 |
commit | d32dd8add53120cef9b30be4240010c2ab6bfc6f (patch) | |
tree | 19666d93be82cedcdce364d59ca81dacd68ea84c /bundle.h | |
parent | Merge branch 'rj/branch-do-not-exit-with-minus-one-status' (diff) | |
parent | bundle-uri: suppress stderr from remote-https (diff) | |
download | git-d32dd8add53120cef9b30be4240010c2ab6bfc6f.tar.xz git-d32dd8add53120cef9b30be4240010c2ab6bfc6f.zip |
Merge branch 'ds/bundle-uri-3'
Define the logical elements of a "bundle list", data structure to
store them in-core, format to transfer them, and code to parse
them.
* ds/bundle-uri-3:
bundle-uri: suppress stderr from remote-https
bundle-uri: quiet failed unbundlings
bundle: add flags to verify_bundle()
bundle-uri: fetch a list of bundles
bundle: properly clear all revision flags
bundle-uri: limit recursion depth for bundle lists
bundle-uri: parse bundle list in config format
bundle-uri: unit test "key=value" parsing
bundle-uri: create "key=value" line parsing
bundle-uri: create base key-value pair parsing
bundle-uri: create bundle_list struct and helpers
bundle-uri: use plain string in find_temp_filename()
Diffstat (limited to 'bundle.h')
-rw-r--r-- | bundle.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -30,7 +30,14 @@ int read_bundle_header_fd(int fd, struct bundle_header *header, int create_bundle(struct repository *r, const char *path, int argc, const char **argv, struct strvec *pack_options, int version); -int verify_bundle(struct repository *r, struct bundle_header *header, int verbose); + +enum verify_bundle_flags { + VERIFY_BUNDLE_VERBOSE = (1 << 0), + VERIFY_BUNDLE_QUIET = (1 << 1), +}; + +int verify_bundle(struct repository *r, struct bundle_header *header, + enum verify_bundle_flags flags); /** * Unbundle after reading the header with read_bundle_header(). @@ -41,9 +48,13 @@ int verify_bundle(struct repository *r, struct bundle_header *header, int verbos * Provide "extra_index_pack_args" to pass any extra arguments * (e.g. "-v" for verbose/progress), NULL otherwise. The provided * "extra_index_pack_args" (if any) will be strvec_clear()'d for you. + * + * Before unbundling, this method will call verify_bundle() with the + * given 'flags'. */ int unbundle(struct repository *r, struct bundle_header *header, - int bundle_fd, struct strvec *extra_index_pack_args); + int bundle_fd, struct strvec *extra_index_pack_args, + enum verify_bundle_flags flags); int list_bundle_refs(struct bundle_header *header, int argc, const char **argv); |