From 1e9d60a06aa4bf4c36f56b3f613e0c4d4d5b9b47 Mon Sep 17 00:00:00 2001 From: Matthew Rothenberg Date: Thu, 2 Oct 2014 14:19:36 -0400 Subject: [PATCH] `gh` is the new `hub` `gh` is the new `hub`, rewritten to be fast and efficient. http://owenou.com/gh/ If has been adopted by GitHub themselves and will replace `hub` entirely, see: https://github.com/github/hub/issues/475 This patch simply checks for `gh` as a possible `_git_cmd` in addition to hub, restoring scm_breeze functionality for people who have switched to gh. --- lib/git/aliases.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/aliases.sh b/lib/git/aliases.sh index 9156fe9..6003a48 100644 --- a/lib/git/aliases.sh +++ b/lib/git/aliases.sh @@ -20,7 +20,7 @@ unset -f git > /dev/null 2>&1 export _git_cmd="$(\which git)" # Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub) if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi - +if type gh > /dev/null 2>&1; then export _git_cmd="gh"; fi # Create 'git' function that calls hub if defined, and expands all numeric arguments function git(){