From a2ba162cda2acc171c3e36acbbc854792b093cb7 Mon Sep 17 00:00:00 2001 From: Bruno Albuquerque Date: Tue, 20 Apr 2021 16:38:31 -0700 Subject: object-info: support for retrieving object info Sometimes it is useful to get information of an object without having to download it completely. Add the "object-info" capability that lets the client ask for object-related information with their full hexadecimal object names. Only sizes are returned for now. Signed-off-by: Bruno Albuquerque Signed-off-by: Junio C Hamano --- protocol-caps.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 protocol-caps.h (limited to 'protocol-caps.h') diff --git a/protocol-caps.h b/protocol-caps.h new file mode 100644 index 0000000000..6351648e37 --- /dev/null +++ b/protocol-caps.h @@ -0,0 +1,10 @@ +#ifndef PROTOCOL_CAPS_H +#define PROTOCOL_CAPS_H + +struct repository; +struct strvec; +struct packet_reader; +int cap_object_info(struct repository *r, struct strvec *keys, + struct packet_reader *request); + +#endif /* PROTOCOL_CAPS_H */ \ No newline at end of file -- cgit v1.3