From: Jakub Narebski Date: Thu, 15 Jan 2009 15:49:51 GMT Subject: Re: [PATCH 2/2] api-run-command.txt: talk about run_hook() Message-ID: In-Reply-To: <1232031618-5243-2-git-send-email-s-beyer@gmx.net> Stephan Beyer writes: > +`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. O.K. > + 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. > + 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