summaryrefslogtreecommitdiffstats
path: root/unwip
diff options
context:
space:
mode:
Diffstat (limited to 'unwip')
-rwxr-xr-xunwip6
1 files changed, 3 insertions, 3 deletions
diff --git a/unwip b/unwip
index 18d8802..1269a16 100755
--- a/unwip
+++ b/unwip
@@ -2,10 +2,11 @@
cmd=${0##*/}
-if "$cmd" == "wip"
+if [ "$cmd" == "wip" ]
+then
git add . && git commit -m WIP && git push --force
+elif [ "$cmd" == "unwip" ]
then
-elif "$cmd" == "unwip"
while [ $(git log --format="%s" HEAD~1..) == "WIP" ]
do
git reset --hard HEAD~1
@@ -14,4 +15,3 @@ elif "$cmd" == "unwip"
else
echo "unknown cmd '$cmd'" && exit 1
fi
-