| 846 | } |
| 847 | |
| 848 | int 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 | } |
no test coverage detected