From 17d800b8a814595c1dd184fd345a887d799f4069 Mon Sep 17 00:00:00 2001 From: Adam Wright Date: Mon, 15 Feb 2016 20:12:37 -0800 Subject: [PATCH] Update comments --- hooks/pre-commit | 3 +++ hooks/pre-push | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 7314a73..5597d32 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -13,6 +13,9 @@ # - TARPC_SKIP_RUSTFMT, default = 0 # # Set this to 1 to skip running rustfmt +# +# Note that these options are most useful for testing the hooks themselves. Use git commit +# --no-verify to skip the pre-commit hook altogether. RED='\033[0;31m' GREEN='\033[0;32m' diff --git a/hooks/pre-push b/hooks/pre-push index 3bd6132..707b4ea 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -10,7 +10,7 @@ # to build and test the code on the appropriate toolchains. The working copy must not contain # uncommitted changes, since the script currently just runs cargo build/test in the working copy. # -# There are a few options that can be set by setting environment variables. +# Options: # # - TARPC_ALLOW_DIRTY, default = 0 # @@ -22,6 +22,9 @@ # # Setting this variable to 1 will just run cargo build and cargo test, rather than running # stable/beta/nightly. +# +# Note that these options are most useful for testing the hooks themselves. Use git push --no-verify +# to skip the pre-push hook altogether. #!/bin/sh