Add a comparison URL to version

In order to make a swift comparison between the currently-installed
version vs the latest commits on `master`, emit a clickable URL that
will show the user the exact changes.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
pull/1157/head
Mike Fiedler 2018-03-05 09:33:09 -05:00
parent c46b72d8d6
commit 7b17c17b09
No known key found for this signature in database
GPG Key ID: 5E1134F2FAF158B9
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ _bash-it-version() {
echo "Current git SHA: $BASH_IT_GIT_VERSION_INFO"
echo "$BASH_IT_GIT_URL/commit/$BASH_IT_GIT_SHA"
echo "Compare to latest: $BASH_IT_GIT_URL/compare/$BASH_IT_GIT_SHA...master"
cd - &> /dev/null || return
}