diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/git/git-hook.html | |
new repository
Diffstat (limited to 'devdocs/git/git-hook.html')
| -rw-r--r-- | devdocs/git/git-hook.html | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ +<h1>git-hook</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-hook - Run git hooks</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git hook run [--ignore-missing] [--to-stdin=<path>] <hook-name> [-- <hook-args>]</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>A command interface for running git hooks (see <a href="githooks">githooks[5]</a>), for use by other scripted git commands.</p> </div> <h2 id="_subcommands">Subcommands</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-hook.txt-run"> run </dt> <dd> <p>Run the <code><hook-name></code> hook. See <a href="githooks">githooks[5]</a> for supported hook names.</p> <p>Any positional arguments to the hook should be passed after a mandatory <code>--</code> (or <code>--end-of-options</code>, see <a href="gitcli">gitcli[7]</a>). See <a href="githooks">githooks[5]</a> for arguments hooks might expect (if any).</p> </dd> </dl> </div> </div> <h2 id="_options">Options</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-hook.txt---to-stdin"> --to-stdin </dt> <dd> <p>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.</p> </dd> <dt class="hdlist1" id="Documentation/git-hook.txt---ignore-missing"> --ignore-missing </dt> <dd> <p>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.</p> </dd> </dl> </div> </div> <h2 id="_see_also">See also</h2> <div class="sectionbody"> <p><a href="githooks">githooks[5]</a></p> </div><div class="_attribution"> + <p class="_attribution-p"> + © 2012–2024 Scott Chacon and others<br>Licensed under the MIT License.<br> + <a href="https://git-scm.com/docs/git-hook" class="_attribution-link">https://git-scm.com/docs/git-hook</a> + </p> +</div> |
