MCPcopy Index your code
hub / github.com/git/git / is_bundle

Function is_bundle

bundle.c:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162int is_bundle(const char *path, int quiet)
163{
164 struct bundle_header header = BUNDLE_HEADER_INIT;
165 int fd = open(path, O_RDONLY);
166
167 if (fd < 0)
168 return 0;
169 fd = read_bundle_header_fd(fd, &header, quiet ? NULL : path);
170 if (fd >= 0)
171 close(fd);
172 bundle_header_release(&header);
173 return (fd >= 0);
174}
175
176static int list_refs(struct string_list *r, int argc, const char **argv)
177{

Callers 3

transport_getFunction · 0.85
fetch_bundles_by_tokenFunction · 0.85

Calls 2

read_bundle_header_fdFunction · 0.85
bundle_header_releaseFunction · 0.85

Tested by

no test coverage detected