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 Oct 4, 2014
1 parent b533719 commit 01ef23d
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 @@ -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(){
Expand Down

0 comments on commit 01ef23d

Please sign in to comment.