Staging
v0.5.1
Revision 876b1423317071f43c99666f3fc3db3642dfbe14 authored by Junio C Hamano on 03 November 2021, 20:32:40 UTC, committed by Junio C Hamano on 03 November 2021, 20:32:40 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0cb1330
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