summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2017-12-08 15:58:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-08 17:58:51 (GMT)
commit640d8b72feaae0b96d5faa663ad624963e416d54 (patch)
tree9e5270af4e27b34c52e7a80510ecf7fb8a1c5303 /transport.h
parent10ac85c785afed4163ed931149a87b30c7c5eaf9 (diff)
downloadgit-640d8b72feaae0b96d5faa663ad624963e416d54.zip
git-640d8b72feaae0b96d5faa663ad624963e416d54.tar.gz
git-640d8b72feaae0b96d5faa663ad624963e416d54.tar.bz2
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 c49a8ed..31b1936 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.