summaryrefslogtreecommitdiffstats
path: root/remote.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-10-15 22:56:43 +0200
committerTaylor Blau <me@ttaylorr.com>2024-10-15 22:56:43 +0200
commitfd98f659fda5a7704b10033f2b2efdae2b0a58e6 (patch)
treec917e68cfe31b741e4aad16922ce7d5466f36dc4 /remote.h
parentMerge branch 'js/doc-platform-support-link-fix' (diff)
parentls-remote: leakfix for not clearing server_options (diff)
downloadgit-fd98f659fda5a7704b10033f2b2efdae2b0a58e6.tar.xz
git-fd98f659fda5a7704b10033f2b2efdae2b0a58e6.zip
Merge branch 'xx/remote-server-option-config'
A new configuration variable remote.<name>.serverOption makes the transport layer act as if the --serverOption=<value> option is given from the command line. * xx/remote-server-option-config: ls-remote: leakfix for not clearing server_options fetch: respect --server-option when fetching multiple remotes transport.c::handshake: make use of server options from remote remote: introduce remote.<name>.serverOption configuration transport: introduce parse_transport_option() method
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index c5e79eb40e..a7e5c4e07c 100644
--- a/remote.h
+++ b/remote.h
@@ -4,6 +4,7 @@
#include "hash.h"
#include "hashmap.h"
#include "refspec.h"
+#include "string-list.h"
#include "strvec.h"
struct option;
@@ -104,6 +105,8 @@ struct remote {
/* The method used for authenticating against `http_proxy`. */
char *http_proxy_authmethod;
+
+ struct string_list server_options;
};
/**