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

Function enable_service

daemon.c:505–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503};
504
505static void enable_service(const char *name, int ena)
506{
507 for (size_t i = 0; i < ARRAY_SIZE(daemon_service); i++) {
508 if (!strcmp(daemon_service[i].name, name)) {
509 daemon_service[i].enabled = ena;
510 return;
511 }
512 }
513 die("No such service %s", name);
514}
515
516static void make_service_overridable(const char *name, int ena)
517{

Callers 1

cmd_mainFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected