mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
Merge pull request #441 from spacewander/features/remove-checkout
remove duplicate checkout
This commit is contained in:
commit
80a7928b67
|
|
@ -10,6 +10,5 @@ else
|
|||
echo "too many arguments; if not finishing a bug, only <name> of new bug is expected" && exit 1
|
||||
fi
|
||||
branch=bug/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
git checkout -b $branch
|
||||
fi
|
||||
|
|
|
|||
3
bin/git-chore
Normal file → Executable file
3
bin/git-chore
Normal file → Executable file
|
|
@ -10,6 +10,5 @@ else
|
|||
echo "too many arguments; if not finishing a chore, only <name> of new chore is expected" && exit 1
|
||||
fi
|
||||
branch=chore/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
git checkout -b $branch
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -20,6 +20,5 @@ else
|
|||
else
|
||||
branch=feature/$1
|
||||
fi
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
git checkout -b $branch
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
# Removed unnecessary git checkout for bug, feature and refactor
|
||||
|
||||
if test "$1" = "finish"; then
|
||||
test -z $2 && echo "refactor <name> required." 1>&2 && exit 1
|
||||
|
|
@ -11,6 +10,5 @@ else
|
|||
echo "too many arguments; if not finishing a refactor, only <name> of new refactoring is expected" && exit 1
|
||||
fi
|
||||
branch=refactor/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
git checkout -b $branch
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue