Commit 0c4d0bf0 authored by Vincent Driessen's avatar Vincent Driessen

Cleanup (mostly whitespace issues).

parent 75fbdd7b
...@@ -232,7 +232,7 @@ cmd_finish() { ...@@ -232,7 +232,7 @@ cmd_finish() {
DEFINE_boolean rebase false "rebase instead of merge" r DEFINE_boolean rebase false "rebase instead of merge" r
DEFINE_boolean keep false "keep branch after performing finish" k DEFINE_boolean keep false "keep branch after performing finish" k
DEFINE_boolean force_delete false "force delete feature branch after finish" D DEFINE_boolean force_delete false "force delete feature branch after finish" D
DEFINE_boolean squash false "squash feature during merge" S DEFINE_boolean squash false "squash feature during merge" S
parse_args "$@" parse_args "$@"
expand_nameprefix_arg_or_current expand_nameprefix_arg_or_current
...@@ -313,13 +313,13 @@ cmd_finish() { ...@@ -313,13 +313,13 @@ cmd_finish() {
if [ "$(git rev-list -n2 "$DEVELOP_BRANCH..$BRANCH" | wc -l)" -eq 1 ]; then if [ "$(git rev-list -n2 "$DEVELOP_BRANCH..$BRANCH" | wc -l)" -eq 1 ]; then
git merge --ff "$BRANCH" git merge --ff "$BRANCH"
else else
if noflag squash; then if noflag squash; then
git merge --no-ff "$BRANCH" git merge --no-ff "$BRANCH"
else else
git merge --squash "$BRANCH" git merge --squash "$BRANCH"
git commit git commit
git merge "$BRANCH" git merge "$BRANCH"
fi fi
fi fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -360,7 +360,7 @@ helper_finish_cleanup() { ...@@ -360,7 +360,7 @@ helper_finish_cleanup() {
git branch -d "$BRANCH" git branch -d "$BRANCH"
fi fi
fi fi
t
echo echo
echo "Summary of actions:" echo "Summary of actions:"
echo "- The feature branch '$BRANCH' was merged into '$DEVELOP_BRANCH'" echo "- The feature branch '$BRANCH' was merged into '$DEVELOP_BRANCH'"
......
...@@ -193,7 +193,7 @@ cmd_finish() { ...@@ -193,7 +193,7 @@ cmd_finish() {
DEFINE_boolean push false "push to $ORIGIN after performing finish" p DEFINE_boolean push false "push to $ORIGIN after performing finish" p
DEFINE_boolean keep false "keep branch after performing finish" k DEFINE_boolean keep false "keep branch after performing finish" k
DEFINE_boolean notag false "don't tag this release" n DEFINE_boolean notag false "don't tag this release" n
DEFINE_boolean squash false "squash release during merge" S DEFINE_boolean squash false "squash release during merge" S
parse_args "$@" parse_args "$@"
require_version_arg require_version_arg
...@@ -225,15 +225,15 @@ cmd_finish() { ...@@ -225,15 +225,15 @@ cmd_finish() {
if ! git_is_branch_merged_into "$BRANCH" "$MASTER_BRANCH"; then if ! git_is_branch_merged_into "$BRANCH" "$MASTER_BRANCH"; then
git checkout "$MASTER_BRANCH" || \ git checkout "$MASTER_BRANCH" || \
die "Could not check out $MASTER_BRANCH." die "Could not check out $MASTER_BRANCH."
if noflag squash; then if noflag squash; then
git merge --no-ff "$BRANCH" || \ git merge --no-ff "$BRANCH" || \
die "There were merge conflicts." die "There were merge conflicts."
# TODO: What do we do now? # TODO: What do we do now?
else else
git merge --squash "$BRANCH" || \ git merge --squash "$BRANCH" || \
die "There were merge conflicts." die "There were merge conflicts."
git commit git commit
fi fi
fi fi
if noflag notag; then if noflag notag; then
...@@ -260,16 +260,16 @@ cmd_finish() { ...@@ -260,16 +260,16 @@ cmd_finish() {
# TODO: Actually, accounting for 'git describe' pays, so we should # TODO: Actually, accounting for 'git describe' pays, so we should
# ideally git merge --no-ff $tagname here, instead! # ideally git merge --no-ff $tagname here, instead!
if noflag squash; then if noflag squash; then
git merge --no-ff "$BRANCH" || \ git merge --no-ff "$BRANCH" || \
die "There were merge conflicts." die "There were merge conflicts."
# TODO: What do we do now? # TODO: What do we do now?
else else
git merge --squash "$BRANCH" || \ git merge --squash "$BRANCH" || \
die "There were merge conflicts." die "There were merge conflicts."
# TODO: What do we do now? # TODO: What do we do now?
git commit git commit
fi fi
fi fi
# delete branch # delete branch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment