tj.git-extras/bin/git-feature
2011-03-23 08:57:30 -07:00

13 lines
334 B
Bash
Executable file

#!/bin/sh
if test "$1" = "finish"; then
test -z $2 && echo "feature <name> required." && exit 1
branch=feature/$2
git merge --no-ff $branch
else
test -z $1 && echo "feature <name> required." && exit 1
branch=feature/$1
git checkout -b $branch &> /dev/null
git checkout $branch &> /dev/null
echo "on branch $branch"
fi