MCPcopy Create free account
hub / github.com/git/git / parse_bundle_signature

Function parse_bundle_signature

bundle.c:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static int parse_bundle_signature(struct bundle_header *header, const char *line)
65{
66 int i;
67
68 for (i = 0; i < ARRAY_SIZE(bundle_sigs); i++) {
69 if (!strcmp(line, bundle_sigs[i].signature)) {
70 header->version = bundle_sigs[i].version;
71 return 0;
72 }
73 }
74 return -1;
75}
76
77int read_bundle_header_fd(int fd, struct bundle_header *header,
78 const char *report_path)

Callers 1

read_bundle_header_fdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected