Re: simple example for git hooks
- From
- Gelonida <gelonida@gmail.com>
- Date
- Sep 5, 2010, 21:48 UTC
- Message-ID
- <i6137p$uet$1@dough.gmane.org>
- In-Reply-To
- <i5p96s$u7q$1@dough.gmane.org>
Hi everybody, On 09/03/2010 12:41 AM, Gelonida wrote:
Show 16 quoted lines
> Does anyone have a simple example of a git pre-commit hook > > > I have difficulties finding understandable tutorals about git hooks. > > > > > What I am looking at is basic examples about > > > precommit hooks > ================ > > - how to get list of modified files >
Thanks for all your answers. I'm currently using git diff-index HEAD --cached
This seems to do what I was looking for.