* Similar to read_bundle_header(), but handle "-" as stdin. */
| 111 | * Similar to read_bundle_header(), but handle "-" as stdin. |
| 112 | */ |
| 113 | static 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 | |
| 127 | static int cmd_bundle_verify(int argc, const char **argv, const char *prefix, |
| 128 | struct repository *repo UNUSED) { |
no test coverage detected