summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitstatus/bin/gitstatusd-darwin-x86_64bin1031344 -> 1031344 bytes
-rwxr-xr-xgitstatus/bin/gitstatusd-freebsd-amd64bin2957256 -> 2957256 bytes
-rwxr-xr-xgitstatus/bin/gitstatusd-linux-armv7lbin1750592 -> 1750592 bytes
-rwxr-xr-xgitstatus/bin/gitstatusd-linux-x86_64bin2172176 -> 2172176 bytes
-rw-r--r--gitstatus/gitstatus.plugin.zsh21
5 files changed, 12 insertions, 9 deletions
diff --git a/gitstatus/bin/gitstatusd-darwin-x86_64 b/gitstatus/bin/gitstatusd-darwin-x86_64
index 0b3e48c4..199edf89 100755
--- a/gitstatus/bin/gitstatusd-darwin-x86_64
+++ b/gitstatus/bin/gitstatusd-darwin-x86_64
Binary files differ
diff --git a/gitstatus/bin/gitstatusd-freebsd-amd64 b/gitstatus/bin/gitstatusd-freebsd-amd64
index 1f050d1e..1a5c1bc7 100755
--- a/gitstatus/bin/gitstatusd-freebsd-amd64
+++ b/gitstatus/bin/gitstatusd-freebsd-amd64
Binary files differ
diff --git a/gitstatus/bin/gitstatusd-linux-armv7l b/gitstatus/bin/gitstatusd-linux-armv7l
index 0e4edde1..73bea5e2 100755
--- a/gitstatus/bin/gitstatusd-linux-armv7l
+++ b/gitstatus/bin/gitstatusd-linux-armv7l
Binary files differ
diff --git a/gitstatus/bin/gitstatusd-linux-x86_64 b/gitstatus/bin/gitstatusd-linux-x86_64
index 6160b300..f24f5a20 100755
--- a/gitstatus/bin/gitstatusd-linux-x86_64
+++ b/gitstatus/bin/gitstatusd-linux-x86_64
Binary files differ
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index 7ff1a43b..95e920ee 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -27,6 +27,7 @@
# VCS_STATUS_COMMIT Commit hash that HEAD is pointing to. Either 40 hex digits or empty
# if there is no HEAD (empty repo).
# VCS_STATUS_LOCAL_BRANCH Local branch name or empty if not on a branch.
+# VCS_STATUS_REMOTE_NAME The remote name, e.g. "upstream" or "origin".
# VCS_STATUS_REMOTE_BRANCH Upstream branch name. Can be empty.
# VCS_STATUS_REMOTE_URL Remote URL. Can be empty.
# VCS_STATUS_ACTION Repository state, A.K.A. action. Can be empty.
@@ -121,15 +122,16 @@ function _gitstatus_process_response() {
typeset -g VCS_STATUS_COMMIT="${VCS_STATUS_ALL[2]}"
typeset -g VCS_STATUS_LOCAL_BRANCH="${VCS_STATUS_ALL[3]}"
typeset -g VCS_STATUS_REMOTE_BRANCH="${VCS_STATUS_ALL[4]}"
- typeset -g VCS_STATUS_REMOTE_URL="${VCS_STATUS_ALL[5]}"
- typeset -g VCS_STATUS_ACTION="${VCS_STATUS_ALL[6]}"
- typeset -gi VCS_STATUS_HAS_STAGED="${VCS_STATUS_ALL[7]}"
- typeset -gi VCS_STATUS_HAS_UNSTAGED="${VCS_STATUS_ALL[8]}"
- typeset -gi VCS_STATUS_HAS_UNTRACKED="${VCS_STATUS_ALL[9]}"
- typeset -gi VCS_STATUS_COMMITS_AHEAD="${VCS_STATUS_ALL[10]}"
- typeset -gi VCS_STATUS_COMMITS_BEHIND="${VCS_STATUS_ALL[11]}"
- typeset -gi VCS_STATUS_STASHES="${VCS_STATUS_ALL[12]}"
- typeset -g VCS_STATUS_TAG="${VCS_STATUS_ALL[13]}"
+ typeset -g VCS_STATUS_REMOTE_NAME="${VCS_STATUS_ALL[5]}"
+ typeset -g VCS_STATUS_REMOTE_URL="${VCS_STATUS_ALL[6]}"
+ typeset -g VCS_STATUS_ACTION="${VCS_STATUS_ALL[7]}"
+ typeset -gi VCS_STATUS_HAS_STAGED="${VCS_STATUS_ALL[8]}"
+ typeset -gi VCS_STATUS_HAS_UNSTAGED="${VCS_STATUS_ALL[9]}"
+ typeset -gi VCS_STATUS_HAS_UNTRACKED="${VCS_STATUS_ALL[10]}"
+ typeset -gi VCS_STATUS_COMMITS_AHEAD="${VCS_STATUS_ALL[11]}"
+ typeset -gi VCS_STATUS_COMMITS_BEHIND="${VCS_STATUS_ALL[12]}"
+ typeset -gi VCS_STATUS_STASHES="${VCS_STATUS_ALL[13]}"
+ typeset -g VCS_STATUS_TAG="${VCS_STATUS_ALL[14]}"
} || {
(( ours )) && VCS_STATUS_RESULT=norepo-sync || VCS_STATUS_RESULT=norepo-async
unset VCS_STATUS_ALL
@@ -137,6 +139,7 @@ function _gitstatus_process_response() {
unset VCS_STATUS_COMMIT
unset VCS_STATUS_LOCAL_BRANCH
unset VCS_STATUS_REMOTE_BRANCH
+ unset VCS_STATUS_REMOTE_NAME
unset VCS_STATUS_REMOTE_URL
unset VCS_STATUS_ACTION
unset VCS_STATUS_HAS_STAGED