aboutsummaryrefslogtreecommitdiffstats
path: root/protocol-caps.h
diff options
context:
space:
mode:
authorBruno Albuquerque <bga@google.com>2021-04-20 16:38:31 -0700
committerJunio C Hamano <gitster@pobox.com>2021-04-20 17:41:13 -0700
commita2ba162cda2acc171c3e36acbbc854792b093cb7 (patch)
tree7e276bdd845e0291feb9aae460e074a73b7efca7 /protocol-caps.h
parentd1b10fc6d84d49796026e567833b88c7f8886c35 (diff)
downloadgit-a2ba162cda2acc171c3e36acbbc854792b093cb7.tar.gz
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 <bga@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'protocol-caps.h')
-rw-r--r--protocol-caps.h10
1 files changed, 10 insertions, 0 deletions
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