diff options
author | Jiang Xin <zhiyou.jx@alibaba-inc.com> | 2020-04-17 11:45:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-17 21:16:32 +0200 |
commit | dfe1b7f19c04fd10e9bafce91bc1da0c18bbb194 (patch) | |
tree | 4f71c2429249967f3c5fe3305b7d26e4a1026e23 /transport.h | |
parent | transport-helper: mark failure for atomic push (diff) | |
download | git-dfe1b7f19c04fd10e9bafce91bc1da0c18bbb194.tar.xz git-dfe1b7f19c04fd10e9bafce91bc1da0c18bbb194.zip |
transport-helper: new method reject_atomic_push()
Add new method in transport-helper to reject all references if any
reference is failed for atomic push.
This method is reused in "send-pack.c" and "transport-helper.c", one for
SSH, git and file protocols, and the other for HTTP protocol.
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r-- | transport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/transport.h b/transport.h index e0131daab9..4298c855be 100644 --- a/transport.h +++ b/transport.h @@ -265,4 +265,7 @@ int transport_refs_pushed(struct ref *ref); void transport_print_push_status(const char *dest, struct ref *refs, int verbose, int porcelain, unsigned int *reject_reasons); +/* common method used by transport-helper.c and send-pack.c */ +void reject_atomic_push(struct ref *refs, int mirror_mode); + #endif |