File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,9 @@ geometry_git_conflicts() {
61
61
62
62
[[ -z " $conflicts " ]] && return
63
63
64
- pushd -q $( git rev-parse --show-toplevel)
65
-
66
64
_grep=${GEOMETRY_GIT_GREP:= ${commands[rg]:= ${commands[ag]:= ${commands[grep]} } } }
67
65
conflict_list=$( $_grep -cH ' ^=======$' $conflicts )
68
66
69
- popd -q
70
-
71
67
raw_file_count=" ${# ${(@ f)conflict_list} } "
72
68
file_count=${raw_file_count##* ( )}
73
69
@@ -85,7 +81,7 @@ geometry_git() {
85
81
(( $+ commands[git] )) || return
86
82
87
83
local git_dir; git_dir=$( git rev-parse --git-dir 2>&1 ) || return
88
- pushd -q " ${ git_dir} /.."
84
+ pushd -q " $git_dir " /..
89
85
90
86
$( command git rev-parse --is-bare-repository 2> /dev/null) \
91
87
&& ansi ${GEOMETRY_GIT_COLOR_BARE:= blue} ${GEOMETRY_GIT_SYMBOL_BARE:= " ⬢" } \
@@ -99,5 +95,5 @@ geometry_git() {
99
95
)
100
96
101
97
echo -n $( geometry_git_symbol) $( geometry_git_branch) ${(ej.${GEOMETRY_GIT_SEPARATOR:- " :: " } .)geometry_git_details}
102
- popd -q
98
+ popd -q 2> /dev/null
103
99
}
You can’t perform that action at this time.
0 commit comments