From: Gelonida <gelonida@gmail.com>
To: git@vger.kernel.org
Subject: Re: simple example for git hooks
Date: Sun, 05 Sep 2010 23:48:41 +0200 [thread overview]
Message-ID: <i6137p$uet$1@dough.gmane.org> (raw)
In-Reply-To: <i5p96s$u7q$1@dough.gmane.org>
Hi everybody,
On 09/03/2010 12:41 AM, Gelonida wrote:
> 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.
prev parent reply other threads:[~2010-09-05 21:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 22:41 simple example for git hooks Gelonida
2010-09-02 22:49 ` Ævar Arnfjörð Bjarmason
2010-09-02 22:54 ` Gelonida
2010-09-03 9:43 ` Knut Franke
2010-09-03 20:37 ` Neal Kreitzinger
2010-09-05 21:48 ` Gelonida [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i6137p$uet$1@dough.gmane.org' \
--to=gelonida@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).