Re: [PATCH v4 3/9] hook: add list command
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 5, 2020, 23:27 UTC
- Message-ID
- <20201005232714.GB1393696@google.com>
- In-Reply-To
- <20200909004939.1942347-4-emilyshaffer@google.com>
Emily Shaffer wrote:
> --- a/Documentation/git-hook.txt > +++ b/Documentation/git-hook.txt > @@ -8,12 +8,47 @@ git-hook - Manage configured hooks
[...]
Show 8 quoted lines
> +COMMANDS > +-------- > + > +list <hook-name>:: > + > +List the hooks which have been configured for <hook-name>. Hooks appear > +in the order they should be run, and note the config scope where the relevant > +`hook.<hook-name>.command` was specified, not the `hookcmd` (if applicable).
A little bit of futureproofing: this may want to mention that the output is intended to be human-readable and is subject to change over time (scripters beware!).
Thanks, Jonathan