summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-10 16:23:05 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-10 16:23:05 +0100
commitc7d0d53b2f3fa6acef62651e23b2c4d165ecfbd3 (patch)
treea3b3d3009d67787e04a2e67c3c7d29bca0cbfa85
parent1f810f62d3f20c6379b4496d1c20fc9ca581cbbf (diff)
downloadgit-sonar-c7d0d53b2f3fa6acef62651e23b2c4d165ecfbd3.tar.gz
git-sonar-c7d0d53b2f3fa6acef62651e23b2c4d165ecfbd3.zip
don't do the remote call in the local commit diff
-rwxr-xr-xgit-base.sh4
1 files changed, 0 insertions, 4 deletions
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"