Skip to content

Commit 01ef23d

Browse files
mrothg5pw
authored andcommitted
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: mislav/hub#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.
1 parent b533719 commit 01ef23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/aliases.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ unset -f git > /dev/null 2>&1
2020
export _git_cmd="$(\which git)"
2121
# Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub)
2222
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
23-
23+
if type gh > /dev/null 2>&1; then export _git_cmd="gh"; fi
2424

2525
# Create 'git' function that calls hub if defined, and expands all numeric arguments
2626
function git(){

0 commit comments

Comments
 (0)