mirror of
https://github.com/michaeldv/pit.git
synced 2025-12-08 15:43:25 +00:00
adds an option to ignore a temporary commit to pit
This commit is contained in:
committed by
Michael Dvorkin
parent
0709e96baf
commit
3e35117f43
@@ -36,6 +36,7 @@ if [ -n "$pit_task" ]; then
|
|||||||
echo " (P)ostponed"
|
echo " (P)ostponed"
|
||||||
echo " (O)pen"
|
echo " (O)pen"
|
||||||
echo " (D)one"
|
echo " (D)one"
|
||||||
|
echo " (T)emp commit, ignore"
|
||||||
echo "Enter the status for task ${pit_task} [D]: "
|
echo "Enter the status for task ${pit_task} [D]: "
|
||||||
read selection
|
read selection
|
||||||
|
|
||||||
@@ -50,10 +51,14 @@ if [ -n "$pit_task" ]; then
|
|||||||
'o'|'O' )
|
'o'|'O' )
|
||||||
status="open"
|
status="open"
|
||||||
;;
|
;;
|
||||||
|
't'|'T' )
|
||||||
|
# This is a test commit and pit should ignore it
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
commit="`grep -v "^#" $1`"
|
commit="`grep -v "^#" $1`"
|
||||||
append="[task ${pit_task}, status:${status}]"
|
append="[task ${pit_task}, status:${status}]"
|
||||||
echo >&2 "$append" >> "$1"
|
echo >&2 "$append" >> "$1"
|
||||||
"${pit}" task -e "${pit_task}" -s "${status}"
|
"${pit}" task -e "${pit_task}" -s "${status}"
|
||||||
"${pit}" note -c "${commit} ${append}"
|
"${pit}" note -c "${commit} ${append}"
|
||||||
|
|||||||
Reference in New Issue
Block a user