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

Function check_submodule

t/helper/test-submodule.c:55–64  ·  view source on GitHub ↗

* Apply 'check_fn' to each line of stdin, printing values that pass the check * to stdout. */

Source from the content-addressed store, hash-verified

53 * to stdout.
54 */
55static int check_submodule(check_fn_t check_fn)
56{
57 struct strbuf buf = STRBUF_INIT;
58 while (strbuf_getline(&buf, stdin) != EOF) {
59 if (!check_fn(buf.buf))
60 printf("%s\n", buf.buf);
61 }
62 strbuf_release(&buf);
63 return 0;
64}
65
66static int cmd__submodule_check_name(int argc, const char **argv)
67{

Callers 2

cmd__submodule_check_urlFunction · 0.85

Calls 2

strbuf_getlineFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected