Skip to content

Commit

Permalink
alias: bugfix
Browse files Browse the repository at this point in the history
'git alias <search-term>' did not work.
  • Loading branch information
nicolaiskogheim committed Jul 29, 2015
1 parent 371dcdf commit 24ad1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-alias
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

case $# in
0) git config --get-regexp 'alias.*' | sed 's/^alias\.//' | sed 's/[ ]/ = /' | sort ;;
1) git alias | grep -e -- "$1" ;;
*) git config --global "alias.$1" "$2" ;;
1) git alias | grep -e "$1" ;;
*) git config --global alias."$1" "$2" ;;
esac

0 comments on commit 24ad1c8

Please sign in to comment.