#!/bin/bash
clear
cd ${0%/*}
cd ../../
git status

printf "Iteration (0000): "
read iteration
iteration=`printf %04d $iteration`

printf "Feature (0000): "
read feature
feature=`printf %04d $feature`

echo "Type";
echo "  [f] Frontend "
echo "  [b] Backend "
echo "  [a] All "
printf "Choice: "
read featureType;

case $featureType in
"f")
featureType="frontend"
;;
"b")
featureType="backend"
;;
"a")
featureType="all"
;;
*) 
echo "Unknown type"
exit 0
;;
esac

comment=$1
message=`printf "ITERATION-%s / FEATURE-%s / %s / %s" $iteration $feature $featureType $comment`

echo "Commit message: $message"
echo "Commit? (y/n):";

read accept;

case $accept in
"y")
git commit -m "$message"
;;
*)
;;
esac
Revert "pretty overkill / cya lata"
Revert "pretty overkill / cya lata"

This reverts commit 1891562e4d6a502cb8f122a9d3525aa03226675b.
