Raw
1 #ifndef FETCH_OBJECT_INFO_H
2 #define FETCH_OBJECT_INFO_H
3
4 #include "pkt-line.h"
5 #include "protocol.h"
6
7 struct object_info_args {
8 struct string_list *object_info_options;
9 const struct string_list *server_options;
10 struct oid_array *oids;
11 };
12
13 struct object_info;
14 /*
15 * Sends git-cat-file object-info command into the request buf and read the
16 * results from packets.
17 *
18 * Modifies args->object_info_options, on return it contains only the supported
19 * options by the server.
20 */
21 int fetch_object_info(enum protocol_version version, struct object_info_args *args,
22 struct packet_reader *reader, struct object_info *object_info_data,
23 int stateless_rpc, int fd_out);
24
25 #endif /* FETCH_OBJECT_INFO_H */