mirror of
https://github.com/tj/git-extras.git
synced 2026-09-15 09:56:19 -04:00
Added git-bug
This commit is contained in:
parent
a272211895
commit
5578905323
13
bin/git-bug
Executable file
13
bin/git-bug
Executable 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
|
||||
Loading…
Reference in a new issue