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

Function is_known_hook

hook.c:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "thread-utils.h"
16
17bool is_known_hook(const char *name)
18{
19 const char **h;
20 for (h = hook_name_list; *h; h++)
21 if (!strcmp(*h, name))
22 return true;
23 return false;
24}
25
26const char *find_hook(struct repository *r, const char *name)
27{

Callers 3

hook_config_lookup_allFunction · 0.85
listFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected