diff options
| author | Matt Hunter <m@lfurio.us> | 2026-02-28 11:25:42 -0500 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-02-28 11:25:42 -0500 |
| commit | 080ca9f72b7b2c54749787f17bab9027ca05514c (patch) | |
| tree | 64ad851bda4efd229258eb8d3c6cde9b2cf5483a | |
| parent | 3fb2886b4a02b143ec5f8232a232eb2d11a7e578 (diff) | |
| download | git-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-x | git-sonar | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |
