Skip to content

Commit

Permalink
Merge branch 'chad3814-develop' into develop
Browse files Browse the repository at this point in the history
Thanks, chad3814.
  • Loading branch information
nvie committed Nov 23, 2011
2 parents be5dabf + 4895c15 commit 447808f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions git-flow-feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ PREFIX=$(git config --get gitflow.prefix.feature)
usage() {
echo "usage: git flow feature [list] [-v]"
echo " git flow feature start [-F] <name> [<base>]"
echo " git flow feature finish [-rFk] [<name|nameprefix>]"
echo " git flow feature finish [-rFkD] [<name|nameprefix>]"
echo " git flow feature publish <name>"
echo " git flow feature track <name>"
echo " git flow feature diff [<name|nameprefix>]"
Expand Down Expand Up @@ -231,6 +231,7 @@ cmd_finish() {
DEFINE_boolean fetch false "fetch from $ORIGIN before performing finish" F
DEFINE_boolean rebase false "rebase instead of merge" r
DEFINE_boolean keep false "keep branch after performing finish" k
DEFINE_boolean force_delete false "force delete feature branch after finish" D
parse_args "$@"
expand_nameprefix_arg_or_current

Expand Down Expand Up @@ -346,7 +347,11 @@ helper_finish_cleanup() {


if noflag keep; then
git branch -d "$BRANCH"
if flag force_delete; then
git branch -D "$BRANCH"
else
git branch -d "$BRANCH"
fi
fi

echo
Expand Down

0 comments on commit 447808f

Please sign in to comment.