Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderdoes committed May 20, 2017
2 parents e9bea99 + a3192c0 commit 3e05e2a
Show file tree
Hide file tree
Showing 15 changed files with 284 additions and 119 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ git-flow AVH Authors

This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
(Changes.mdown) and logs, available at
and logs, available at
http://github.com/petervanderdoes/gitflow.


Expand Down
188 changes: 102 additions & 86 deletions Changes.mdown → CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion git-flow
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down
31 changes: 27 additions & 4 deletions git-flow-bugfix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -9,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down Expand Up @@ -243,6 +245,7 @@ showcommands! Show git commands while executing them
F,[no]fetch Fetch from origin before performing finish
r,[no]rebase Rebase before merging
p,[no]preserve-merges Preserve merges while rebasing
[no]push Push to origin after performing finish
k,[no]keep Keep branch after performing finish
keepremote! Keep the remote branch
keeplocal! Keep the local branch
Expand All @@ -256,6 +259,7 @@ no-ff! Never fast-forward during the merge
DEFINE_boolean 'fetch' false "fetch from $ORIGIN before performing finish" F
DEFINE_boolean 'rebase' false "rebase before merging" r
DEFINE_boolean 'preserve-merges' false 'try to recreate merges while rebasing' p
DEFINE_boolean 'push' false "push to $ORIGIN after performing finish"
DEFINE_boolean 'keep' false "keep branch after performing finish" k
DEFINE_boolean 'keepremote' false "keep the remote branch"
DEFINE_boolean 'keeplocal' false "keep the local branch"
Expand All @@ -268,6 +272,7 @@ no-ff! Never fast-forward during the merge
gitflow_override_flag_boolean "bugfix.finish.fetch" "fetch"
gitflow_override_flag_boolean "bugfix.finish.rebase" "rebase"
gitflow_override_flag_boolean "bugfix.finish.preserve-merges" "preserve_merges"
gitflow_override_flag_boolean "bugfix.finish.push" "push"
gitflow_override_flag_boolean "bugfix.finish.keep" "keep"
gitflow_override_flag_boolean "bugfix.finish.keepremote" "keepremote"
gitflow_override_flag_boolean "bugfix.finish.keeplocal" "keeplocal"
Expand Down Expand Up @@ -464,6 +469,10 @@ helper_finish_cleanup() {
fi
fi

if flag push; then
git_do push "$ORIGIN" "$BASE_BRANCH" || die "Could not push branch '$BASE_BRANCH' to remote '$ORIGIN'."
fi

echo
echo "Summary of actions:"
echo "- The bugfix branch '$BRANCH' was merged into '$BASE_BRANCH'"
Expand Down Expand Up @@ -650,7 +659,9 @@ p,[no]preserve-merges Preserve merges
BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH}

warn "Will try to rebase '$NAME' which is based on '$BASE_BRANCH'..."
require_clean_working_tree
if ! git_config_bool_exists "rebase.autostash"; then
require_clean_working_tree
fi
require_branch "$BRANCH"

git_local_branch_exists "$BASE_BRANCH" || die "The base '$BASE_BRANCH' doesn't exists locally or is not a branch. Can't rebase the bugfix branch '$BRANCH'."
Expand Down Expand Up @@ -794,13 +805,13 @@ r,[no]remote Delete remote branch
if git_is_branch_merged_into "$BRANCH" "$BASE_BRANCH"; then
git_do branch -d "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
if flag force; then
git_do branch -D "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
die "bugfix branch '$BRANCH' has been not been merged yet. Use -f to force the deletion."
Expand All @@ -817,3 +828,15 @@ r,[no]remote Delete remote branch
echo "- You are now on branch '$(git_current_branch)'"
echo
}

cmd_rename() {
OPTIONS_SPEC="\
git flow bugfix rename <new_name> [<new_name>]
Rename a given bugfix branch
--
h,help! Show this help
showcommands! Show git commands while executing them
"
gitflow_rename_branch "$@"
}
4 changes: 3 additions & 1 deletion git-flow-config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -9,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
Expand Down
26 changes: 21 additions & 5 deletions git-flow-feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#@IgnoreInspection BashAddShebang
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -10,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down Expand Up @@ -658,7 +659,10 @@ p,[no]preserve-merges Preserve merges
BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH}

warn "Will try to rebase '$NAME' which is based on '$BASE_BRANCH'..."
require_clean_working_tree
if ! git_config_bool_exists "rebase.autostash"; then
require_clean_working_tree
fi

require_branch "$BRANCH"

git_local_branch_exists "$BASE_BRANCH" || die "The base '$BASE_BRANCH' doesn't exists locally or is not a branch. Can't rebase the feature branch '$BRANCH'."
Expand Down Expand Up @@ -802,13 +806,13 @@ r,[no]remote Delete remote branch
if git_is_branch_merged_into "$BRANCH" "$BASE_BRANCH"; then
git_do branch -d "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
if flag force; then
git_do branch -D "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
die "Feature branch '$BRANCH' has been not been merged yet. Use -f to force the deletion."
Expand All @@ -825,3 +829,15 @@ r,[no]remote Delete remote branch
echo "- You are now on branch '$(git_current_branch)'"
echo
}

cmd_rename() {
OPTIONS_SPEC="\
git flow feature rename <new_name> [<new_name>]
Rename a given feature branch
--
h,help! Show this help
showcommands! Show git commands while executing them
"
gitflow_rename_branch "$@"
}
26 changes: 21 additions & 5 deletions git-flow-hotfix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -9,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down Expand Up @@ -186,7 +188,7 @@ F,[no]fetch Fetch from origin before performing local operation

# No need to continue if not clean
require_base_is_local_branch "$base"
require_clean_working_tree
git_config_bool_exists "gitflow.allowdirty" || require_clean_working_tree
gitflow_config_set_base_branch $base $BRANCH

# Update the local repo with remote changes, if asked
Expand Down Expand Up @@ -309,7 +311,9 @@ p,[no]preserve-merges Preserve merges
BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH}

warn "Will try to rebase '$NAME' which is based on '$BASE_BRANCH'..."
require_clean_working_tree
if ! git_config_bool_exists "rebase.autostash"; then
require_clean_working_tree
fi
require_branch "$BRANCH"

git_local_branch_exists "$BASE_BRANCH" || die "The base '$BASE_BRANCH' doesn't exists locally or is not a branch. Can't rebase the hotfixe branch '$BRANCH'."
Expand Down Expand Up @@ -701,13 +705,13 @@ r,[no]remote Delete remote branch
if ( git_is_branch_merged_into "$BRANCH" "$MASTER_BRANCH" && git_is_branch_merged_into "$BRANCH" "$DEVELOP_BRANCH" ); then
git_do branch -d "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
if flag force; then
git_do branch -D "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
die "Hotfix branch '$BRANCH' has been not been merged in branch '$MASTER_BRANCH' and/or branch '$DEVELOP_BRANCH'. Use -f to force the deletion."
Expand All @@ -724,3 +728,15 @@ r,[no]remote Delete remote branch
echo "- You are now on branch '$(git_current_branch)'"
echo
}

cmd_rename() {
OPTIONS_SPEC="\
git flow hotfix rename <new_name> [<new_name>]
Rename a given hotfix branch
--
h,help! Show this help
showcommands! Show git commands while executing them
"
gitflow_rename_branch "$@"
}
14 changes: 12 additions & 2 deletions git-flow-init
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -9,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down Expand Up @@ -89,7 +91,7 @@ file= use given config file
parse_args "$@"

if [ "$FLAGS_file" != "" ]; then
gitflow_config_option="--file '$FLAGS_file''"
gitflow_config_option="--file $FLAGS_file"
elif flag local; then
gitflow_config_option="--local"
elif flag global; then
Expand All @@ -100,6 +102,14 @@ file= use given config file
gitflow_config_option=""
fi

if git_config_bool_exists "user.useconfigonly"; then
user_email=$(git config --get user.email)
user_name=$(git config --get user.name)
if [ -z "${user_email}" ] || [ -z "${user_name}" ]; then
die "Configuration useconfigonly is set but no name and/or email was set"
fi
fi

if ! git rev-parse --git-dir >/dev/null 2>&1; then
git_do init
else
Expand Down
4 changes: 3 additions & 1 deletion git-flow-log
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -9,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down
14 changes: 9 additions & 5 deletions git-flow-release
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $Id$
# vim:et:ft=sh:sts=2:sw=2
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
Expand All @@ -9,7 +11,7 @@
# http://github.com/petervanderdoes/gitflow
#
# Authors:
# Copyright 2012-2016 Peter van der Does. All rights reserved.
# Copyright 2012-2017 Peter van der Does. All rights reserved.
#
# Original Author:
# Copyright 2010 Vincent Driessen. All rights reserved.
Expand Down Expand Up @@ -565,7 +567,7 @@ v,verbose! Verbose (more) output
require_no_existing_release_branches

# Sanity checks
require_clean_working_tree
git_config_bool_exists "gitflow.allowdirty" || require_clean_working_tree
require_branch_absent "$BRANCH"
require_tag_absent "$VERSION_PREFIX$VERSION"
if flag fetch; then
Expand Down Expand Up @@ -999,7 +1001,9 @@ p,[no]preserve-merges Preserve merges
BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH}

warn "Will try to rebase '$NAME' which is based on '$BASE_BRANCH'..."
require_clean_working_tree
if ! git_config_bool_exists "rebase.autostash"; then
require_clean_working_tree
fi
require_branch "$BRANCH"

git_local_branch_exists "$BASE_BRANCH" || die "The base '$BASE_BRANCH' doesn't exists locally or is not a branch. Can't rebase the release branch '$BRANCH'."
Expand Down Expand Up @@ -1062,13 +1066,13 @@ r,[no]remote Delete remote branch
if ( git_is_branch_merged_into "$BRANCH" "$MASTER_BRANCH" && git_is_branch_merged_into "$BRANCH" "$BASE_BRANCH" ); then
git_do branch -d "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
if flag force; then
git_do branch -D "$BRANCH" || die "Could not delete the $BRANCH."
if flag remote; then
git_do push "$ORIGIN" :"$BRANCH" || die "Could not delete the remote $BRANCH in $ORIGIN."
git_remote_branch_delete "$BRANCH"
fi
else
die "Release branch '$BRANCH' has been not been merged in branch '$MASTER_BRANCH' and/or branch '$BASE_BRANCH'. Use -f to force the deletion."
Expand Down
Loading

0 comments on commit 3e05e2a

Please sign in to comment.