Re: global hooks - once again
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 2, 2010, 18:03 UTC
- Message-ID
- <20100702180355.GA1770@burratino>
- In-Reply-To
- <AANLkTikXJS5QCXMXgsOfkYn9cMBQV6o23tds5YG3A_OI@mail.gmail.com>
Eugene Sajine wrote:
> I have found a thread dated March 2008 about the subject, but there > was no acceptable solution provided.
Link?
> If there is no better way now Is it possible to create a git config > property specifying where the global hooks folder is and then look for > hooks there first and then in the repo or vice versa?
Well, I like the idea[1]. The design issues are not very complicated; the main thing is to implement it.
$ git grep -l -F -e 'hooks/' -- \*.c \*.sh \*.perl | egrep -v '^(contrib/(examples|hooks))|t/' builtin/commit.c builtin/init-db.c builtin/receive-pack.c git-am.sh git-cvsserver.perl git-rebase--interactive.sh git-rebase.sh run-command.c
Hope that helps, Jonathan
[1] e.g., for http://bugs.debian.org/514651