Merge branch 'features'

This commit is contained in:
Tj Holowaychuk 2011-04-05 02:51:37 -07:00
commit aa6ec8fd7b
3 changed files with 36 additions and 0 deletions

12
bin/git-bug Executable file
View file

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

12
bin/git-feature Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
if test "$1" = "finish"; then
test -z $2 && echo "feature <name> required." && exit 1
branch=feature/$2
git merge --no-ff $branch && git delete-branch $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
fi

12
bin/git-refactor Executable file
View file

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