浏览代码

feat(git-flow): add aliases for current `feature` / `release` branch (#9439)

Closes #9439
Fidel Torres 3 年之前
父节点
当前提交
89ab38fe64
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      plugins/git-flow/git-flow.plugin.zsh

+ 4 - 0
plugins/git-flow/git-flow.plugin.zsh

@@ -39,6 +39,10 @@ alias gflrf='git flow release finish'
 alias gflhp='git flow hotfix publish'
 alias gflrp='git flow release publish'
 alias gflfpll='git flow feature pull'
+alias gflffc='git flow feature finish $(echo $(current_branch) | cut -c 9-)'
+alias gflfpc='git flow feature publish $(echo $(current_branch) | cut -c 9-)'
+alias gflrfc='git flow release finish $(echo $(current_branch) | cut -c 9-)'
+alias gflrpc='git flow release publish $(echo $(current_branch) | cut -c 9-)'
 
 _git-flow ()
 {