Skip to content

Commit 44981aa

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 f30825a commit 44981aa

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
@@ -18,7 +18,7 @@ unset -f git > /dev/null 2>&1
1818
export _git_cmd="$(\which git)"
1919
# Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub)
2020
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
21-
21+
if type gh > /dev/null 2>&1; then export _git_cmd="gh"; fi
2222

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

0 commit comments

Comments
 (0)