From 3e35117f43b83d6068ba9dbc76c8a1369b6256c2 Mon Sep 17 00:00:00 2001 From: Eric Merritt Date: Mon, 17 Jan 2011 04:10:47 +0800 Subject: [PATCH] adds an option to ignore a temporary commit to pit --- tools/commit-msg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/commit-msg b/tools/commit-msg index 445e880..694264c 100755 --- a/tools/commit-msg +++ b/tools/commit-msg @@ -36,6 +36,7 @@ if [ -n "$pit_task" ]; then echo " (P)ostponed" echo " (O)pen" echo " (D)one" + echo " (T)emp commit, ignore" echo "Enter the status for task ${pit_task} [D]: " read selection @@ -50,10 +51,14 @@ if [ -n "$pit_task" ]; then 'o'|'O' ) status="open" ;; + 't'|'T' ) + # This is a test commit and pit should ignore it + exit 0 + ;; esac commit="`grep -v "^#" $1`" - append="[task ${pit_task}, status:${status}]" + append="[task ${pit_task}, status:${status}]" echo >&2 "$append" >> "$1" "${pit}" task -e "${pit_task}" -s "${status}" "${pit}" note -c "${commit} ${append}"