Commit 21c7516a authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Added a 'hooks' command

'hooks' lists all the hooks supported by git-hooks. Another command
mainly existing for bash_completion.
parent 2fd75c10
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -173,6 +173,12 @@ cmd_installed ()
	find -type f -printf '%P\n'
}

cmd_hooks ()
{
	summary="list all the hooks"
	echo "$HOOKS"
}

cmd_help ()
{
	summary="show this help message"