Added git-bug

This commit is contained in:
Tj Holowaychuk 2011-03-23 16:00:05 -07:00
parent a272211895
commit 5578905323

13
bin/git-bug Executable file
View file

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