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

Function open_bundle

builtin/bundle.c:113–125  ·  view source on GitHub ↗

* Similar to read_bundle_header(), but handle "-" as stdin. */

Source from the content-addressed store, hash-verified

111 * Similar to read_bundle_header(), but handle "-" as stdin.
112 */
113static int open_bundle(const char *path, struct bundle_header *header,
114 const char **name)
115{
116 if (!strcmp(path, "-")) {
117 if (name)
118 *name = "<stdin>";
119 return read_bundle_header_fd(0, header, "<stdin>");
120 }
121
122 if (name)
123 *name = path;
124 return read_bundle_header(path, header);
125}
126
127static int cmd_bundle_verify(int argc, const char **argv, const char *prefix,
128 struct repository *repo UNUSED) {

Callers 3

cmd_bundle_verifyFunction · 0.85
cmd_bundle_list_headsFunction · 0.85
cmd_bundle_unbundleFunction · 0.85

Calls 2

read_bundle_header_fdFunction · 0.85
read_bundle_headerFunction · 0.85

Tested by

no test coverage detected