Files
git/builtin/hook.c
Emily Shaffer aa8bbb612b hook: scaffolding for git-hook subcommand
Introduce infrastructure for a new subcommand, git-hook, which will be
used to ease config-based hook management. This command will handle
parsing configs to compose a list of hooks to run for a given event, as
well as adding or modifying hook configs in an interactive fashion.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-05-21 15:37:49 -07:00

22 lines
381 B
C

#include "cache.h"
#include "builtin.h"
#include "parse-options.h"
static const char * const builtin_hook_usage[] = {
N_("git hook"),
NULL
};
int cmd_hook(int argc, const char **argv, const char *prefix)
{
struct option builtin_hook_options[] = {
OPT_END(),
};
argc = parse_options(argc, argv, prefix, builtin_hook_options,
builtin_hook_usage, 0);
return 0;
}