summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorJiang Xin <zhiyou.jx@alibaba-inc.com>2020-04-17 09:45:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-17 19:16:32 (GMT)
commitdfe1b7f19c04fd10e9bafce91bc1da0c18bbb194 (patch)
tree4f71c2429249967f3c5fe3305b7d26e4a1026e23 /transport.h
parentf38b16843dcbb575803dfeab39a4172b7469411d (diff)
downloadgit-dfe1b7f19c04fd10e9bafce91bc1da0c18bbb194.zip
git-dfe1b7f19c04fd10e9bafce91bc1da0c18bbb194.tar.gz
git-dfe1b7f19c04fd10e9bafce91bc1da0c18bbb194.tar.bz2
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index e0131da..4298c85 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