Adding extra instructions when running the list option without any corresponding branches found.
diff --git a/git-flow-feature b/git-flow-feature
index 98154ef..e5d0ed6 100644
--- a/git-flow-feature
+++ b/git-flow-feature
@@ -66,6 +66,10 @@
feature_branches=$(echo "$(git_local_branches)" | grep "^$PREFIX")
if [ -z "$feature_branches" ]; then
warn "No feature branches exist."
+ warn ""
+ warn "You can start a new feature branch:"
+ warn ""
+ warn " git flow feature start <name> [<base>]"
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
diff --git a/git-flow-hotfix b/git-flow-hotfix
index 65dbaa3..e3ea035 100644
--- a/git-flow-hotfix
+++ b/git-flow-hotfix
@@ -62,6 +62,10 @@
hotfix_branches=$(echo "$(git_local_branches)" | grep "^$PREFIX")
if [ -z "$hotfix_branches" ]; then
warn "No hotfix branches exist."
+ warn ""
+ warn "You can start a new hotfix branch:"
+ warn ""
+ warn " git flow hotfix start <name> [<base>]"
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
diff --git a/git-flow-release b/git-flow-release
index 882a7be..37f44f0 100644
--- a/git-flow-release
+++ b/git-flow-release
@@ -62,6 +62,11 @@
release_branches=$(echo "$(git_local_branches)" | grep "^$PREFIX")
if [ -z "$release_branches" ]; then
warn "No release branches exist."
+ warn ""
+ warn "You can start a new release branch:"
+ warn ""
+ warn " git flow release start <name> [<base>]"
+
exit 0
fi
diff --git a/git-flow-support b/git-flow-support
index 1357d1f..ab98fd3 100644
--- a/git-flow-support
+++ b/git-flow-support
@@ -64,6 +64,10 @@
support_branches=$(echo "$(git_local_branches)" | grep "^$PREFIX")
if [ -z "$support_branches" ]; then
warn "No support branches exist."
+ warn ""
+ warn "You can start a new support branch:"
+ warn ""
+ warn " git flow support start <name> <base>"
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')