Skip to content

Commit ed9237f

Browse files
author
Jonathan Dahan
committed
Remove GEOMETRY_GIT_SEPARATOR, use GEOMETRY_SEPARATOR like all other functions, fixes #277
1 parent 0b73405 commit ed9237f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
### Fixed
1212
- geometry_git complaining when not in a work-tree
1313

14+
### Removed
15+
- GEOMETRY_GIT_SEPARATOR hidden feature, was the only function that didnt work like the others.
16+
Now uses GEOMETRY_SEPARATOR like everything else.
17+
1418
## 2.0.5 - 2019-10-14
1519

1620
### Fixed

functions/geometry_git

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ geometry_git() {
8787
&& ansi ${GEOMETRY_GIT_COLOR_BARE:=blue} ${GEOMETRY_GIT_SYMBOL_BARE:="⬢"} \
8888
&& return
8989

90-
local geometry_git_details && geometry_git_details=(
90+
local git_info && git_info=(
91+
$(geometry_git_symbol)
92+
$(geometry_git_branch)
9193
$(geometry_git_conflicts)
9294
$(geometry_git_time)
9395
$(geometry_git_stashes)
9496
$(geometry_git_status)
9597
)
9698

97-
echo -n $(geometry_git_symbol) $(geometry_git_branch) ${(ej.${GEOMETRY_GIT_SEPARATOR:-" :: "}.)geometry_git_details}
99+
echo -n ${(ej.${GEOMETRY_SEPARATOR:- }.)git_info}
98100
popd -q 2>/dev/null
99101
}

0 commit comments

Comments
 (0)