From c7d0d53b2f3fa6acef62651e23b2c4d165ecfbd3 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Mon, 10 Aug 2015 16:23:05 +0100 Subject: don't do the remote call in the local commit diff --- git-base.sh | 4 ---- 1 file changed, 4 deletions(-) (limited to 'git-base.sh') diff --git a/git-base.sh b/git-base.sh index 47bdac9..23c3fd8 100755 --- a/git-base.sh +++ b/git-base.sh @@ -387,8 +387,6 @@ bash_color_local_commits() { if remote_branch="$(remote_branch_name)"; then local_ahead="$(commits_ahead_of_remote "$remote_branch")" local_behind="$(commits_behind_of_remote "$remote_branch")" - remote_ahead="$(remote_ahead_of_master "$remote_branch")" - remote_behind="$(remote_behind_of_master "$remote_branch")" if [[ "$local_behind" -gt "0" && "$local_ahead" -gt "0" ]]; then local_commits="$separator$local_behind$yellow_diverged_arrow$local_ahead" @@ -415,8 +413,6 @@ zsh_color_local_commits() { if remote_branch="$(remote_branch_name)"; then local_ahead="$(commits_ahead_of_remote "$remote_branch")" local_behind="$(commits_behind_of_remote "$remote_branch")" - remote_ahead="$(remote_ahead_of_master "$remote_branch")" - remote_behind="$(remote_behind_of_master "$remote_branch")" if [[ "$local_behind" -gt "0" && "$local_ahead" -gt "0" ]]; then local_commits="$separator$local_behind$diverged_arrow$local_ahead" -- cgit v1.2.3