Skip to content
This repository
Browse code

adds an option to ignore a temporary commit to pit

  • Loading branch information...
commit 3e35117f43b83d6068ba9dbc76c8a1369b6256c2 1 parent 0709e96
Eric Merritt ericbmerritt authored committed

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 tools/commit-msg
7 tools/commit-msg
@@ -36,6 +36,7 @@ if [ -n "$pit_task" ]; then
36 36 echo " (P)ostponed"
37 37 echo " (O)pen"
38 38 echo " (D)one"
  39 + echo " (T)emp commit, ignore"
39 40 echo "Enter the status for task ${pit_task} [D]: "
40 41 read selection
41 42
@@ -50,10 +51,14 @@ if [ -n "$pit_task" ]; then
50 51 'o'|'O' )
51 52 status="open"
52 53 ;;
  54 + 't'|'T' )
  55 + # This is a test commit and pit should ignore it
  56 + exit 0
  57 + ;;
53 58 esac
54 59
55 60 commit="`grep -v "^#" $1`"
56   - append="[task ${pit_task}, status:${status}]"
  61 + append="[task ${pit_task}, status:${status}]"
57 62 echo >&2 "$append" >> "$1"
58 63 "${pit}" task -e "${pit_task}" -s "${status}"
59 64 "${pit}" note -c "${commit} ${append}"

0 comments on commit 3e35117

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