Jelajahi Sumber

Add gitflow alias to create a release in one command

Emmanuel Bouthenot 9 tahun lalu
induk
melakukan
336c618f79
1 mengubah file dengan 14 tambahan dan 0 penghapusan
  1. 14 0
      .zsh/config/10_alias.zsh

+ 14 - 0
.zsh/config/10_alias.zsh

@@ -139,6 +139,20 @@ if (( $+commands[colormake] )); then
     alias make="colormake"
 fi
 
+#
+# Git Flow stuff
+#
+git-flow-release() {
+    if [[ "${1}" != "" ]]; then
+        export GIT_MERGE_AUTOEDIT=no
+        git flow release start "${1}" && \
+            GIT_MERGE_AUTOEDIT=no git flow release finish -m "${1}" "${1}"
+    else
+        printf "%s: tag is missing\n" "${0}" >&2
+    fi
+}
+alias gfr="git-flow-release"
+
 #
 # Mssh stuff
 #