summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-03-07 18:56:27 -0500
committerMatt Hunter <m@lfurio.us>2026-03-15 09:43:16 -0400
commitc5fbc9dce62a8986fee88c4d97c66c7541c98514 (patch)
tree3c119cd4809fefac612a41d311f763ad01d18814
parentb78422df85c0afe1352e82507f26729f68a657c0 (diff)
downloadgit-sonar-c5fbc9dce62a8986fee88c4d97c66c7541c98514.tar.gz
git-sonar-c5fbc9dce62a8986fee88c4d97c66c7541c98514.zip
Rescope "remote" variable
Better match the context of surrounding "formatter" functions. Signed-off-by: Matt Hunter <m@lfurio.us>
-rwxr-xr-xgit-sonar2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-sonar b/git-sonar
index 5243ec7..ade12bf 100755
--- a/git-sonar
+++ b/git-sonar
@@ -7,7 +7,6 @@
GIT_SONAR_VERSION="v0.8.1"
dot_git=""
-remote=""
rcfile_path="$HOME"
get_fetch_time() {
@@ -386,6 +385,7 @@ color_remote_commits() {
local green_ahead_arrow="${COLOR_REMOTE_AHEAD}↑$RESET_COLOR_REMOTE" # "←"
local red_behind_arrow="${COLOR_REMOTE_BEHIND}↓$RESET_COLOR_REMOTE" # "→"
local yellow_diverged_arrow="${COLOR_REMOTE_DIVERGED}⇵$RESET_COLOR_REMOTE" # "⇄"
+ remote=""
if remote_branch="$(remote_branch_name)"; then
remote_ahead="$(remote_ahead_of_master "$remote_branch")"