git_commits_behind code review changes

This commit is contained in:
Steven Spasbo 2016-03-31 16:54:09 -07:00
commit 756494c0f9

View file

@ -86,7 +86,7 @@ function git_commits_ahead() {
# Gets the number of commits behind remote
function git_commits_behind() {
if $(command git rev-parse --git-dir > /dev/null 2>&1); then
echo $(git rev-list --count $(current_branch)..$(git rev-parse --abbrev-ref --symbolic-full-name @{u}))
echo $(git rev-list --count HEAD..@{upstream})
fi
}