Re: [PATCH 2/2] api-run-command.txt: talk about run_hook()
Stephan Beyer <s-beyer@gmx.net> writes:
Show 5 quoted lines
> +`run_hook`::
> +
> + Run a hook.
> + The first argument is a string to an index file or NULL
> + if the default index file or no index is used at all.
Errr...
The first argument is a filename path to an index file,
or NULL if hook uses default index file or no index is
used at all. > + The second argument is the name of the hook.
> + The further variable number (up to 9) of arguments correspond
> + to the hook arguments.
> + The last argument has to be NULL to terminate the variable
> + arguments list.
Why the limitation of maximum of 9 hook arguments?
> + If the hook is not executable, the return value is zero.
Or the hook does not exist, I assume.
Show 11 quoted lines
> + If it is executable, the hook will be executed and the exit
> + status of the hook is returned.
> + On execution, .stdout_to_stderr and .no_stdin will be set.
> + (See below.)
> +
>
> Data structures
> ---------------
> --
> 1.6.1.160.gecdb
>
--
Jakub Narebski
Poland
ShadeHawk on #git