Top "Hook" questions

A hook refers to replacing or extending a system or application's default behavior with a custom behavior for a specific event.

Git Hook under Windows

I have the following code to checkout in a working directory in the hook post-receive: #!/bin/sh git --work-tree=d:/…

windows git post hook
SendInput() not equal to pressing key manually on keyboard in C++?

I wanted to write a c++ code to emulate pressing a keyboard key "A": // Set up a generic keyboard event. …

c++ winapi keyboard hook sendinput
git-clone and post-checkout hook

According to the manual, the post-checkout hook is run after a git checkout (just as expected) but also after a …

git hook git-clone
git post-receive hook not running

I have a bare repo server-side, and I am able to successfully commit and push from my local machine. However, …

git hook
Wordpress. Woocommerce. Action hook BEFORE adding to cart

What i need to do: I want to run some checks on a product before being added to the cart. …

wordpress hook woocommerce
C++ Function Hook (memory address only)

I have a memory address, its the memory address of a function in another program (one of its dlls). I …

c++ hook detours
How to require commit messages in VisualSVN server?

We've got VisualSVN Server set up as our Subversion server on Windows, and we use Ankhsvn + TortoiseSVN as clients on …

svn notifications hook visualsvn-server svn-hooks
get commit message in git hook

I would like to check commit message before git commit. I use pre-commit hook to do that, but couldn't find …

git hook
Java shutdown hook

I have added the following code to my program: Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { @Override public void run() { …

java hook shutdown
Share common / useful SVN pre-commit hooks

What are some common and/or useful pre-commit hooks for SVN?

svn version-control hook svn-hooks pre-commit