Skip to content

Commit

Permalink
gh is the new hub
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
mroth authored and g5pw committed Mar 16, 2016
1 parent f30825a commit 44981aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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(){
Expand Down

0 comments on commit 44981aa

Please sign in to comment.