Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 6c220937e2b26d85920bf2d38ff2464a0d57fd6b authored by Junio C Hamano on 09 November 2021, 21:19:51 UTC
Git 2.34-rc2
Tip revision: 6c22093
hook.h
#ifndef HOOK_H
#define HOOK_H

/*
 * Returns the path to the hook file, or NULL if the hook is missing
 * or disabled. Note that this points to static storage that will be
 * overwritten by further calls to find_hook and run_hook_*.
 */
const char *find_hook(const char *name);

/**
 * A boolean version of find_hook()
 */
int hook_exists(const char *hookname);

#endif
back to top