[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jgit-dev] git hooks for [e|j]git
|
On 04/11/2014 10:41, Christian
Halstrick wrote:
Will do asap.
Now that you mention it... I do change the behavior slightly. I've
decided to check for the existence of a hook only when running it
(hook present on not, I try to run it, so I prepare its arguments
beforehand). The argument for the "commit-msg" hook is the path to a
file containing the proposed commit message (.git/COMMIT_EDITMSG),
so that the hook can change it. To run this hook, I thus serialize
the message, run the hook if it is present, then re-read the commit
message file. I initially did that to minimize I/O operations
involving the hooks... but I didn't realize I did generate more I/O
that way for that particular hook (especially in the case where it
is not present...). I'll change my implementation.
Thanks for the input!
Laurent
|
begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard