Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: cd3e606211bb1cf8bc57f7d76bab98cc17a150bc authored by Junio C Hamano on 15 November 2021, 06:50:52 UTC
Git 2.34
Tip revision: cd3e606
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