Skip to content
Browse files

adds an option to ignore a temporary commit to pit

  • Loading branch information...
1 parent 0709e96 commit 3e35117f43b83d6068ba9dbc76c8a1369b6256c2 @ericbmerritt ericbmerritt committed with Jan 17, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 tools/commit-msg
View
7 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}"

0 comments on commit 3e35117

Please sign in to comment.
Something went wrong with that request. Please try again.