bundle: parse filter capability
The v3 bundle format has capabilities, allowing newer versions of Git to create bundles with newer features. Older versions that do not understand these new capabilities will fail with a helpful warning. Create a new capability allowing Git to understand that the contained pack-file is filtered according to some object filter. Typically, this filter will be "blob:none" for a blobless partial clone. This change teaches Git to parse this capability, place its value in the bundle header, and demonstrate this understanding by adding a message to 'git bundle verify'. Since we will use gently_parse_list_objects_filter() outside of list-objects-filter-options.c, make it an external method and move its API documentation to before its declaration. Signed-off-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
4f33a6345f
commit
105c6f14ad
2
bundle.h
2
bundle.h
@ -4,12 +4,14 @@
|
||||
#include "strvec.h"
|
||||
#include "cache.h"
|
||||
#include "string-list.h"
|
||||
#include "list-objects-filter-options.h"
|
||||
|
||||
struct bundle_header {
|
||||
unsigned version;
|
||||
struct string_list prerequisites;
|
||||
struct string_list references;
|
||||
const struct git_hash_algo *hash_algo;
|
||||
struct list_objects_filter_options filter;
|
||||
};
|
||||
|
||||
#define BUNDLE_HEADER_INIT \
|
||||
|
Reference in New Issue
Block a user