git commit --allow-empty -m "$BRANCH was completed on $(date), total time taken:$FINALTIME expectde time was $TIME_EXPECTED"
git commit --allow-empty -m "$BRANCH was completed on $(date), total time taken:$FINALTIME expectde time was $TIME_EXPECTED, Time spent on breaks was $TOTAL_TIME_OFF"
# when no merge conflict is detected, just clean up the feature branch
# when no merge conflict is detected, just clean up the feature branch
...
@@ -599,6 +602,54 @@ cmd_pause() {
...
@@ -599,6 +602,54 @@ cmd_pause() {
git checkout --orphan "$BRANCH-paused"
git checkout --orphan "$BRANCH-paused"
git reset -- *
echo
echo "Summary of actions:"
echo "- Created orphan branch called '$BRANCH-paused'"
echo "- You are now free to take a break, you have spent $TIMESTAMP in this session"
echo ""
echo "Now, have some coffee and when you are done, use:"