From afa4ea56fedc3ca04d3b00a3ef930833e7ad68ea Mon Sep 17 00:00:00 2001 From: Pablo Sabater Date: Sat, 8 Aug 2026 02:02:23 +0200 Subject: fetch-object-info: parse type from server response The server can handle type requests but does not advertise the capability yet. Prepare the client to know how to parse the server response once the server advertises the type capability. Mentored-by: Karthik Nayak Mentored-by: Chandra Pratap Signed-off-by: Pablo Sabater Signed-off-by: Junio C Hamano --- fetch-object-info.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fetch-object-info.h') diff --git a/fetch-object-info.h b/fetch-object-info.h index 10cf9f5f63..2fba96c6f7 100644 --- a/fetch-object-info.h +++ b/fetch-object-info.h @@ -1,14 +1,17 @@ #ifndef FETCH_OBJECT_INFO_H #define FETCH_OBJECT_INFO_H +#include "object.h" #include "pkt-line.h" #include "protocol.h" struct fetch_object_info_results { size_t *sizes; + enum object_type *types; uint8_t *unrecognized; size_t nr; unsigned wants_size:1; + unsigned wants_type:1; }; #define FETCH_OBJECT_INFO_RESULTS_INIT { 0 } -- cgit