Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 876b1423317071f43c99666f3fc3db3642dfbe14 authored by Junio C Hamano on 03 November 2021, 20:32:40 UTC
Git 2.34-rc1
Tip revision: 876b142
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