From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/git/git-hook.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 devdocs/git/git-hook.html (limited to 'devdocs/git/git-hook.html') diff --git a/devdocs/git/git-hook.html b/devdocs/git/git-hook.html new file mode 100644 index 00000000..7cf8e1d3 --- /dev/null +++ b/devdocs/git/git-hook.html @@ -0,0 +1,6 @@ +

git-hook

Name

git-hook - Run git hooks

Synopsis

git hook run [--ignore-missing] [--to-stdin=<path>] <hook-name> [-- <hook-args>]

Description

A command interface for running git hooks (see githooks[5]), for use by other scripted git commands.

Subcommands

run

Run the <hook-name> hook. See githooks[5] for supported hook names.

Any positional arguments to the hook should be passed after a mandatory -- (or --end-of-options, see gitcli[7]). See githooks[5] for arguments hooks might expect (if any).

Options

--to-stdin

For "run"; specify a file which will be streamed into the hook’s stdin. The hook will receive the entire file from beginning to EOF.

--ignore-missing

Ignore any missing hook by quietly returning zero. Used for tools that want to do a blind one-shot run of a hook that may or may not be present.

See also

githooks[5]

+

+ © 2012–2024 Scott Chacon and others
Licensed under the MIT License.
+ https://git-scm.com/docs/git-hook +

+
-- cgit v1.2.3