mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
git_commits_behind code review changes
This commit is contained in:
parent
f04e71f115
commit
756494c0f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue