summaryrefslogtreecommitdiff
path: root/upload-pack.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-03-14 18:31:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-14 21:15:06 (GMT)
commita3d6b53e92528d20fdaca504614f260c5b457b29 (patch)
tree93b5c74f2fa31c9a6c7e6b583b66ecdc075dd7a1 /upload-pack.h
parenta4cfd41c7be81c10b925532979e81e4d07f6b376 (diff)
downloadgit-a3d6b53e92528d20fdaca504614f260c5b457b29.zip
git-a3d6b53e92528d20fdaca504614f260c5b457b29.tar.gz
git-a3d6b53e92528d20fdaca504614f260c5b457b29.tar.bz2
upload-pack: convert to a builtin
In order to allow for code sharing with the server-side of fetch in protocol-v2 convert upload-pack to be a builtin. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.h')
-rw-r--r--upload-pack.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/upload-pack.h b/upload-pack.h
new file mode 100644
index 0000000..a71e4dc
--- /dev/null
+++ b/upload-pack.h
@@ -0,0 +1,13 @@
+#ifndef UPLOAD_PACK_H
+#define UPLOAD_PACK_H
+
+struct upload_pack_options {
+ int stateless_rpc;
+ int advertise_refs;
+ unsigned int timeout;
+ int daemon_mode;
+};
+
+void upload_pack(struct upload_pack_options *options);
+
+#endif /* UPLOAD_PACK_H */