]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/git.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 23 Oct 2017 23:11:58 +0000 (00:11 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 23 Oct 2017 23:11:58 +0000 (00:11 +0100)
etc/profile.d/git.sh

index 946501954d81114a83b4c68f76b99f17fcf8af66..a5958fa39f52f42f4630229deeb3d9a0eca8749c 100644 (file)
@@ -3,6 +3,8 @@
 #
 [ -z "$GIT_REPO" ] && GIT_REPO='git@git.nbdom.net'
 which git > /dev/null || return 0
+# NB 24.10.17: TODEL 
+unset -f git_create_branch 2>&1 | true
 
 alias git_grep="git grep --color=auto"
 alias git_ls_tree="git ls-tree --full-tree -r HEAD"
@@ -178,13 +180,13 @@ git_merge_from() {
 }
 
 git_merge_to() {
-  local usage="Usage: git_merge_to BRANCH and auto push branch to !"
+  local usage="Usage: git_merge_to BRANCH, and push branch !"
   local to=${1:?$usage}
   local branch=$(git branch 2>/dev/null|awk '/^\*/{print $2}')
   [ -z "$branch" ] && echo "$usage" 1>&2 && return 1
   eval "git checkout $to && git pull && git merge $branch && git push && git checkout $branch"
 }
 
-git_create_branch() {
+git_branch_create_push() {
   git checkout -b "$1" && git push --set-upstream origin "$1"
 }