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

Function read_bundle_header

bundle.c:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153int read_bundle_header(const char *path, struct bundle_header *header)
154{
155 int fd = open(path, O_RDONLY);
156
157 if (fd < 0)
158 return error(_("could not open '%s'"), path);
159 return read_bundle_header_fd(fd, header, path);
160}
161
162int is_bundle(const char *path, int quiet)
163{

Callers 4

unbundle_from_fileFunction · 0.85
cmd_cloneFunction · 0.85
open_bundleFunction · 0.85

Calls 2

errorFunction · 0.85
read_bundle_header_fdFunction · 0.85

Tested by

no test coverage detected