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>
This commit is contained in:
Brandon Williams
2018-03-14 11:31:41 -07:00
committed by Junio C Hamano
parent a4cfd41c7b
commit a3d6b53e92
6 changed files with 108 additions and 82 deletions

13
upload-pack.h Normal file
View File

@@ -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 */