diff options
-rwxr-xr-x | gitstatus/bin/gitstatusd-android-aarch64 | bin | 1084840 -> 1080744 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64 | bin | 2176512 -> 2179072 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-darwin-x86_64 | bin | 2091052 -> 2095068 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-freebsd-amd64 | bin | 3272552 -> 3275624 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-linux-aarch64 | bin | 2278160 -> 2282256 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-linux-armv7l | bin | 1885724 -> 1889820 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-linux-x86_64 | bin | 2335976 -> 2340072 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-linux-x86_64-static | bin | 2065600 -> 2069696 bytes | |||
-rwxr-xr-x | gitstatus/bin/gitstatusd-msys_nt-10.0-x86_64 | bin | 2004992 -> 2007040 bytes | |||
-rw-r--r-- | gitstatus/gitstatus.plugin.zsh | 14 |
10 files changed, 10 insertions, 4 deletions
diff --git a/gitstatus/bin/gitstatusd-android-aarch64 b/gitstatus/bin/gitstatusd-android-aarch64 Binary files differindex cdea703e..77a4b7e1 100755 --- a/gitstatus/bin/gitstatusd-android-aarch64 +++ b/gitstatus/bin/gitstatusd-android-aarch64 diff --git a/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64 b/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64 Binary files differindex 0568ca78..4a6639c6 100755 --- a/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64 +++ b/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64 diff --git a/gitstatus/bin/gitstatusd-darwin-x86_64 b/gitstatus/bin/gitstatusd-darwin-x86_64 Binary files differindex 17b0ddcf..77f885cd 100755 --- a/gitstatus/bin/gitstatusd-darwin-x86_64 +++ b/gitstatus/bin/gitstatusd-darwin-x86_64 diff --git a/gitstatus/bin/gitstatusd-freebsd-amd64 b/gitstatus/bin/gitstatusd-freebsd-amd64 Binary files differindex f164a48e..df717f58 100755 --- a/gitstatus/bin/gitstatusd-freebsd-amd64 +++ b/gitstatus/bin/gitstatusd-freebsd-amd64 diff --git a/gitstatus/bin/gitstatusd-linux-aarch64 b/gitstatus/bin/gitstatusd-linux-aarch64 Binary files differindex af762125..b8c040ff 100755 --- a/gitstatus/bin/gitstatusd-linux-aarch64 +++ b/gitstatus/bin/gitstatusd-linux-aarch64 diff --git a/gitstatus/bin/gitstatusd-linux-armv7l b/gitstatus/bin/gitstatusd-linux-armv7l Binary files differindex bef8cc66..90569406 100755 --- a/gitstatus/bin/gitstatusd-linux-armv7l +++ b/gitstatus/bin/gitstatusd-linux-armv7l diff --git a/gitstatus/bin/gitstatusd-linux-x86_64 b/gitstatus/bin/gitstatusd-linux-x86_64 Binary files differindex 8f10274d..02a933b0 100755 --- a/gitstatus/bin/gitstatusd-linux-x86_64 +++ b/gitstatus/bin/gitstatusd-linux-x86_64 diff --git a/gitstatus/bin/gitstatusd-linux-x86_64-static b/gitstatus/bin/gitstatusd-linux-x86_64-static Binary files differindex 46466532..24a060e8 100755 --- a/gitstatus/bin/gitstatusd-linux-x86_64-static +++ b/gitstatus/bin/gitstatusd-linux-x86_64-static diff --git a/gitstatus/bin/gitstatusd-msys_nt-10.0-x86_64 b/gitstatus/bin/gitstatusd-msys_nt-10.0-x86_64 Binary files differindex f74138e3..16cd297e 100755 --- a/gitstatus/bin/gitstatusd-msys_nt-10.0-x86_64 +++ b/gitstatus/bin/gitstatusd-msys_nt-10.0-x86_64 diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh index bdc8b7c3..6287798f 100644 --- a/gitstatus/gitstatus.plugin.zsh +++ b/gitstatus/gitstatus.plugin.zsh @@ -67,8 +67,8 @@ typeset -g _gitstatus_plugin_dir=${${(%):-%x}:A:h} # ## Usage: gitstatus_query [OPTION]... NAME # -# -d STR Directory to query. Must be absolute. Defaults to $GIT_DIR or the current -# directory if GIT_DIR is not set. +# -d STR Directory to query. Defaults to the current directory. Has no effect if GIT_DIR +# is set. # -c STR Callback function to call once the results are available. Called only after # gitstatus_query returns 0 with VCS_STATUS_RESULT=tout. # -t FLOAT Timeout in seconds. Will block for at most this long. If no results are @@ -135,7 +135,7 @@ function gitstatus_query() { setopt err_return no_unset local opt - local dir=${GIT_DIR:-} + local dir local callback local -F timeout=-1 local no_diff=0 @@ -160,7 +160,13 @@ function gitstatus_query() { local client_pid_var=_GITSTATUS_CLIENT_PID_${name} [[ ${(P)client_pid_var} == $$ ]] - [[ $dir == /* ]] || dir=${(%):-%/}/$dir + if [[ -z ${GIT_DIR:-} ]]; then + [[ $dir == /* ]] || dir=${(%):-%/}/$dir + elif [[ $GIT_DIR == /* ]]; then + dir=:$GIT_DIR + else + dir=:${(%):-%/}/$GIT_DIR + fi local req_fd_var=_GITSTATUS_REQ_FD_${name} local -i req_fd=${(P)req_fd_var} |