summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-02-28 11:25:42 -0500
committerMatt Hunter <m@lfurio.us>2026-02-28 11:25:42 -0500
commit080ca9f72b7b2c54749787f17bab9027ca05514c (patch)
tree64ad851bda4efd229258eb8d3c6cde9b2cf5483a
parent3fb2886b4a02b143ec5f8232a232eb2d11a7e578 (diff)
downloadgit-sonar-080ca9f72b7b2c54749787f17bab9027ca05514c.tar.gz
git-sonar-080ca9f72b7b2c54749787f17bab9027ca05514c.zip
Move repository condition indicator to beginning of default format
When both the %{condition} and %{remote} features are rendering at the same time, the "!" looks a little out of place - as though the checked-out branch has some issue, rather than the local repository. Swapping their order, as well as adding a space for separation, is more intuitive. 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 4135162..5fee51f 100755
--- a/git-sonar
+++ b/git-sonar
@@ -52,7 +52,7 @@ prepare_colors() {
COLOR_BRANCH="\x01${GIT_RADAR_COLOR_BRANCH:-"\\033[0m"}\x02"
MASTER_SYMBOL="${GIT_RADAR_MASTER_SYMBOL:-""}" # \\x01\\033[0m\\x02\\xF0\\x9D\\x98\\xAE\\x01\\033[0m\\x02
- PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" \\x01\\033[1;30m\\x02git:(\\x01\\033[0m\\x02%{remote: }%{condition}%{missingups}%{branch}%{ :local}\\x01\\033[1;30m\\x02)\\x01\\033[0m\\x02%{ :stash}%{ :changes}"}"
+ PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" \\x01\\033[1;30m\\x02git:(\\x01\\033[0m\\x02%{condition: }%{remote: }%{missingups}%{branch}%{ :local}\\x01\\033[1;30m\\x02)\\x01\\033[0m\\x02%{ :stash}%{ :changes}"}"
RESET_COLOR_LOCAL="\x01${GIT_RADAR_COLOR_LOCAL_RESET:-"\\033[0m"}\x02"
RESET_COLOR_REMOTE="\x01${GIT_RADAR_COLOR_REMOTE_RESET:-"\\033[0m"}\x02"