## combined hook program
-This interface is deprecated -- it's better, and not much harder,
-to write an [[external_special_remote|external]]!
-
Rather than setting all of the above hooks, you can write a single
program that handles everything, and set a single hook to make it be used.
# git config annex.demo-hook /usr/local/bin/annexdemo
# git annex initremote mydemorepo type=hook hooktype=demo encryption=none
-The program just needs to look at the `ANNEX_ACTION` environment variable
-to see what it's being asked to do. For example:
+But, doing that is deprecated -- it's better, and not much harder,
+to write an [[external_special_remote|external]]!
+
+If you still want to do this, the program just needs to look at the
+`ANNEX_ACTION` environment variable to see what it's being asked to do.
+For example:
[[!format sh """
#!/bin/sh