mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 23:46:24 -04:00
Merge branch 'features'
This commit is contained in:
commit
aa6ec8fd7b
12
bin/git-bug
Executable file
12
bin/git-bug
Executable 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
12
bin/git-feature
Executable 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
12
bin/git-refactor
Executable 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
|
||||
Loading…
Reference in a new issue