found 528270 git/1:1.7.2.3-2.1 tags 528270 - fixed-upstream forwarded 528270 http://thread.gmane.org/gmane.comp.version-control.git/150141/focus=150346 quit
sean finney wrote: > it would be really nice to have in my ~/.gitconfig something that could > override the location of the hooks dir normally in .git/hooks. the only > way i can think of currently doing this is overriding the default templates, > but this only works for new repos. This is a complicated one. The main problem is that each repository might need slightly different hooks, so a global collection of hooks would be problematic unless combined with some per-repository configuration. The best solution currently available is to set up the directory pointed to by "[init] templatedir" to contain a symlink in place of the hooks directory. This does not work retroactively on existing repositories but it does make it easy to understand what has happened and to be able to easily tweak the behavior without walking repositories from then on. A script involving "find -name .git" can be used to take care of existing repos on the day it is set up. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

