summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorLibravatar Jeff Hostetler <jeffhost@microsoft.com>2017-12-08 15:58:40 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-08 09:58:51 -0800
commit640d8b72feaae0b96d5faa663ad624963e416d54 (patch)
tree9e5270af4e27b34c52e7a80510ecf7fb8a1c5303 /transport.h
parentupload-pack: add object filtering for partial clone (diff)
downloadtgif-640d8b72feaae0b96d5faa663ad624963e416d54.tar.xz
fetch-pack, index-pack, transport: partial clone
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index c49a8edc53..31b1936f8c 100644
--- a/transport.h
+++ b/transport.h
@@ -4,6 +4,7 @@
#include "cache.h"
#include "run-command.h"
#include "remote.h"
+#include "list-objects-filter-options.h"
struct string_list;
@@ -23,6 +24,7 @@ struct git_transport_options {
const char *uploadpack;
const char *receivepack;
struct push_cas_option *cas;
+ struct list_objects_filter_options filter_options;
};
enum transport_family {
@@ -221,6 +223,9 @@ void transport_check_allowed(const char *type);
*/
#define TRANS_OPT_NO_DEPENDENTS "no-dependents"
+/* Filter objects for partial clone and fetch */
+#define TRANS_OPT_LIST_OBJECTS_FILTER "filter"
+
/**
* Returns 0 if the option was used, non-zero otherwise. Prints a
* message to stderr if the option is not used.