From 77087aaa8d9ff92ef84ae727411f0eca100ed5de Mon Sep 17 00:00:00 2001 From: Fabio Vitale Date: Sun, 13 Jun 2021 20:05:09 +0200 Subject: [PATCH] refactor(git-glow): Add config interpolation for git-flow messages (#7481) Changed commands: gcd: uses gitflow.branch.develop to get user-set development branch gch: uses gitflow.prefix.hotfix to get user-set hotfix prefix gcr: uses gitflow.prefix.release to get user-set release prefix Co-authored-by: Fabio 'c0m3tx' Vitale --- plugins/git-flow/git-flow.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh index 916cd5693..8f0714b16 100644 --- a/plugins/git-flow/git-flow.plugin.zsh +++ b/plugins/git-flow/git-flow.plugin.zsh @@ -23,9 +23,9 @@ #Alias alias gfl='git flow' alias gfli='git flow init' -alias gcd='git checkout develop' -alias gch='git checkout hotfix' -alias gcr='git checkout release' +alias gcd='git checkout $(git config gitflow.branch.develop)' +alias gch='git checkout $(git config gitflow.prefix.hotfix)' +alias gcr='git checkout $(git config gitflow.prefix.release)' alias gflf='git flow feature' alias gflh='git flow hotfix' alias gflr='git flow release'