From: Johannes Sixt <j.sixt@viscovery.net>
To: "Björn Hendriks" <bjoern01@nurfuerspam.de>
Cc: git@vger.kernel.org, "John Dlugosz" <JDlugosz@tradestation.com>,
"Santi Béjar" <santi@agolina.net>
Subject: Re: Generate version file by hooks
Date: Tue, 17 Mar 2009 17:54:57 +0100 [thread overview]
Message-ID: <49BFD5E1.60803@viscovery.net> (raw)
In-Reply-To: <200903171740.26575.bjoern01@nurfuerspam.de>
Björn Hendriks schrieb:
> In fact my problem is not to find out the SHA1 of the last commit in a script
> but to have that script called automatically each time git changes the
> commit. My idea was to use the git hooks for that, but as I explained I
> couldn't find hooks for all cases in which a commit changes.
In fact there are so many situations where the current commit changes. You
won't find enough hooks to catch all cases.
You better modify your build system to look for the current commit when it
is needed. That is *much* safer.
-- Hannes
next prev parent reply other threads:[~2009-03-17 16:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 15:42 Generate version file by hooks John Dlugosz
2009-03-17 16:40 ` Björn Hendriks
2009-03-17 16:54 ` Johannes Sixt [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-17 15:26 Björn Hendriks
2009-03-17 15:43 ` Santi Béjar
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=49BFD5E1.60803@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=JDlugosz@tradestation.com \
--cc=bjoern01@nurfuerspam.de \
--cc=git@vger.kernel.org \
--cc=santi@agolina.net \
/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).