From e8ee36733f2f56d44974df49b138f22b2f8e5abc Mon Sep 17 00:00:00 2001 From: Justin Dugger Date: Tue, 12 May 2020 20:06:10 -0700 Subject: [PATCH] add a config setting for prefix --- bin/git-feature | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/git-feature b/bin/git-feature index 6872ad9..8712008 100755 --- a/bin/git-feature +++ b/bin/git-feature @@ -1,6 +1,11 @@ #!/usr/bin/env bash -branch_prefix=feature +branch_prefix=$(git config --get git-extras.feature.prefix) + +if [ -z "$branch_prefix" ]; then + branch_prefix="feature" +fi + merge_mode="--no-ff" declare -a argv while test $# != 0