From ff473221b4d6cf0894ba47370492d853a36c024d Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Mon, 23 Apr 2018 15:46:23 -0700 Subject: ls-remote: send server options when using protocol v2 Teach ls-remote to optionally accept server options by specifying them on the cmdline via '-o' or '--server-option'. These server options are sent to the remote end when querying for the remote end's refs using protocol version 2. If communicating using a protocol other than v2 the provided options are ignored and not sent to the remote end. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- transport.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'transport.h') diff --git a/transport.h b/transport.h index e783cfa075..73a7be3c8a 100644 --- a/transport.h +++ b/transport.h @@ -71,6 +71,12 @@ struct transport { */ const struct string_list *push_options; + /* + * These strings will be passed to the remote side on each command + * request, if both sides support the server-option capability. + */ + const struct string_list *server_options; + char *pack_lockfile; signed verbose : 3; /** -- cgit v1.2.3