File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,7 @@ function updatePrompt() {
378
378
379
379
git_prompt_config
380
380
381
+ export __GIT_PROMPT_IGNORE_STASH=${GIT_PROMPT_IGNORE_STASH}
381
382
local -a GitStatus
382
383
GitStatus=($( " $__GIT_STATUS_CMD " 2> /dev/null) )
383
384
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ num_changed=$(( `all_lines "$gitstatus"` - `count_lines "$gitstatus" U` ))
39
39
num_conflicts=` count_lines " $staged_files " U`
40
40
num_staged=$(( `all_lines "$staged_files "` - num_conflicts ))
41
41
num_untracked=` git ls-files --others --exclude-standard | wc -l`
42
- if [[ -n " $GIT_PROMPT_IGNORE_STASH " ]]; then
42
+ if [[ " $__GIT_PROMPT_IGNORE_STASH " = " 1 " ]]; then
43
43
num_stashed=0
44
44
else
45
45
num_stashed=` git stash list | wc -l`
You can’t perform that action at this time.
0 commit comments