From: Ævar Arnfjörð Bjarmason Date: Thu, 02 Sep 2010 22:49:45 GMT Subject: Re: simple example for git hooks Message-ID: In-Reply-To: On Thu, Sep 2, 2010 at 22:41, Gelonida wrote: > Is there any clear documentation about hich git commands I'm allowed to > use during a trigger script and which ones I can't It's just a program that's run at a certain point, and its exit status determines if git proceeds. So you can use any git command, but of course what you might affect what's about to be commited. For a pre-commit hook (IIRC) you should find the stuff to be commited in the index, finding a list of things that changed from a hook is just a matter of diffing HEAD against the contents of the index then.