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

Function run_hooks_l

hook.c:848–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848int run_hooks_l(struct repository *r, const char *hook_name, ...)
849{
850 struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT;
851 va_list ap;
852 const char *arg;
853
854 va_start(ap, hook_name);
855 while ((arg = va_arg(ap, const char *)))
856 strvec_push(&opt.args, arg);
857 va_end(ap);
858
859 return run_hooks_opt(r, hook_name, &opt);
860}

Callers 4

update_refsFunction · 0.85
do_write_locked_indexFunction · 0.85
cmd_rebaseFunction · 0.85
finishFunction · 0.85

Calls 2

strvec_pushFunction · 0.85
run_hooks_optFunction · 0.70

Tested by

no test coverage detected