gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Having two precommit hooks


From: Thomas Lord
Subject: Re: [Gnu-arch-users] Having two precommit hooks
Date: Sat, 9 Oct 2004 13:24:04 -0700 (PDT)

    > From: Mikhael Goikhman <address@hidden>

    > Like others, I thought "precommit" suggests the tree may be modified.
    > If we are going to have two precommit hooks, then I suggest to use
    > intuitive names this time, i.e. prepare-commit and confirm-commit hooks.

A "hook" is the opportunity to invoke a user-specified computation at
a point during another computation when, otherwise, such invocation
would be impossible.

A pre-commit hook that allowed tree modifications would have to be
run, in effect, before the commit did anything else at all.   But you
can already do that, without a hook, just by modifying the tree before
calling commit.

Why in the world should `tla commit' have a hook that runs before
doing anything else?  Should `cat' and `ls' have such hooks too?

-t





reply via email to

[Prev in Thread] Current Thread [Next in Thread]