Staging
v0.5.1
Revision 6c220937e2b26d85920bf2d38ff2464a0d57fd6b authored by Junio C Hamano on 09 November 2021, 21:19:51 UTC, committed by Junio C Hamano on 09 November 2021, 21:19:51 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 84c99b2
Raw File
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