Skip to content

Commit 637abb0

Browse files
authored
Merge pull request #1 from bmcdonnell/bugfix/help-text-and-reorder-rename-args
Bugfix/help text and reorder rename args
2 parents fb6f513 + cf3885e commit 637abb0

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

git-flow-bugfix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ git flow bugfix rebase
5757
git flow bugfix checkout
5858
git flow bugfix pull
5959
git flow bugfix delete
60+
git flow bugfix rename
6061
6162
Manage your bugfix branches.
6263
@@ -831,7 +832,7 @@ r,[no]remote Delete remote branch
831832

832833
cmd_rename() {
833834
OPTIONS_SPEC="\
834-
git flow bugfix rename <new_name> [<new_name>]
835+
git flow bugfix rename [<old_name>] <new_name>
835836
836837
Rename a given bugfix branch
837838
--

git-flow-feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ git flow feature rebase
5757
git flow feature checkout
5858
git flow feature pull
5959
git flow feature delete
60+
git flow feature rename
6061
6162
Manage your feature branches.
6263
@@ -832,7 +833,7 @@ r,[no]remote Delete remote branch
832833

833834
cmd_rename() {
834835
OPTIONS_SPEC="\
835-
git flow feature rename <new_name> [<new_name>]
836+
git flow feature rename [<old_name>] <new_name>
836837
837838
Rename a given feature branch
838839
--

git-flow-hotfix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ git flow hotfix start
5353
git flow hotfix finish
5454
git flow hotfix publish
5555
git flow hotfix delete
56+
git flow hotfix rebase
57+
git flow hotfix track
58+
git flow hotfix rename
5659
5760
Manage your hotfix branches.
5861
@@ -732,7 +735,7 @@ r,[no]remote Delete remote branch
732735

733736
cmd_rename() {
734737
OPTIONS_SPEC="\
735-
git flow hotfix rename <new_name> [<new_name>]
738+
git flow hotfix rename [<old_name>] <new_name>
736739
737740
Rename a given hotfix branch
738741
--

git-flow-release

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,10 @@ usage() {
434434
git flow release [list]
435435
git flow release start
436436
git flow release finish
437+
git flow release branch
437438
git flow release publish
438439
git flow release track
440+
git flow release rebase
439441
git flow release delete
440442
441443
Manage your release branches.

git-flow-support

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ usage() {
5050
OPTIONS_SPEC="\
5151
git flow support [list]
5252
git flow support start
53+
git flow support rebase
5354
5455
Manage your support branches.
5556

gitflow-common

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -609,15 +609,17 @@ gitflow_rename_branch() {
609609
# read arguments into global variables
610610
if [ -z $1 ]; then
611611
NEW_NAME=''
612-
else
613-
NEW_NAME=$1
614-
fi
615-
616-
if [ -z $2 ]; then
617612
NAME=''
618613
else
619-
NAME=$2
614+
if [ -z $2 ]; then
615+
NAME=''
616+
NEW_NAME=$1
617+
else
618+
NAME=$1
619+
NEW_NAME=$2
620+
fi
620621
fi
622+
621623
BRANCH=${PREFIX}${NAME}
622624
NEW_BRANCH=${PREFIX}${NEW_NAME}
623625

0 commit comments

Comments
 (0)