Skip to content

Commit

Permalink
Squashed 'gitstatus/' changes from 6a4f0fc0..cd5673b4
Browse files Browse the repository at this point in the history
cd5673b4 increase default gitstatus_start timeout from 5s to 30s

git-subtree-dir: gitstatus
git-subtree-split: cd5673b4971bf1a6d9aa8d57963e954e619b950e
  • Loading branch information
romkatv committed May 11, 2020
1 parent bc85e46 commit d047ed8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gitstatus.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Usage: gitstatus_start [OPTION]...
#
# -t FLOAT Fail the self-check on initialization if not getting a response from
# gitstatusd for this this many seconds. Defaults to 5.
# gitstatusd for this this many seconds. Defaults to 30.
#
# -s INT Report at most this many staged changes; negative value means infinity.
# Defaults to 1.
Expand Down Expand Up @@ -37,7 +37,7 @@
# changes for repositories with bash.showDirtyState = false.
function gitstatus_start() {
unset OPTIND
local opt timeout=5 max_dirty=-1 extra_flags
local opt timeout=30 max_dirty=-1 extra_flags
local max_num_staged=1 max_num_unstaged=1 max_num_conflicted=1 max_num_untracked=1
local ignore_status_show_untracked_files
while getopts "t:s:u:c:d:m:eUWD" opt; do
Expand Down
4 changes: 2 additions & 2 deletions gitstatus.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ function _gitstatus_daemon"${1:-}"() {
# Usage: gitstatus_start [OPTION]... NAME
#
# -t FLOAT Fail the self-check on initialization if not getting a response from gitstatusd for
# this this many seconds. Defaults to 5.
# this this many seconds. Defaults to 30.
#
# -s INT Report at most this many staged changes; negative value means infinity.
# Defaults to 1.
Expand Down Expand Up @@ -480,7 +480,7 @@ function gitstatus_start"${1:-}"() {

local opt OPTARG
local -i OPTIND
local -F timeout=5
local -F timeout=30
local -i async=0
local -a args=()
local -i dirty_max_index_size=-1
Expand Down

0 comments on commit d047ed8

Please sign in to comment.