push: accept push options

This implements everything that is required on the client side to make use
of push options from the porcelain push command.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Stefan Beller
2016-07-14 14:49:47 -07:00
committed by Junio C Hamano
parent c714e45f87
commit f6a4e61fbb
6 changed files with 63 additions and 4 deletions

View File

@ -1,6 +1,8 @@
#ifndef SEND_PACK_H
#define SEND_PACK_H
#include "string-list.h"
/* Possible values for push_cert field in send_pack_args. */
#define SEND_PACK_PUSH_CERT_NEVER 0
#define SEND_PACK_PUSH_CERT_IF_ASKED 1
@ -21,6 +23,7 @@ struct send_pack_args {
push_cert:2,
stateless_rpc:1,
atomic:1;
const struct string_list *push_options;
};
struct option;