We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62d95d5 commit c0510cfCopy full SHA for c0510cf
gitprompt.sh
@@ -378,6 +378,7 @@ function updatePrompt() {
378
379
git_prompt_config
380
381
+ export __GIT_PROMPT_IGNORE_STASH=${GIT_PROMPT_IGNORE_STASH}
382
local -a GitStatus
383
GitStatus=($("$__GIT_STATUS_CMD" 2>/dev/null))
384
gitstatus.sh
@@ -39,7 +39,7 @@ num_changed=$(( `all_lines "$gitstatus"` - `count_lines "$gitstatus" U` ))
39
num_conflicts=`count_lines "$staged_files" U`
40
num_staged=$(( `all_lines "$staged_files"` - num_conflicts ))
41
num_untracked=`git ls-files --others --exclude-standard | wc -l`
42
-if [[ -n "$GIT_PROMPT_IGNORE_STASH" ]]; then
+if [[ "$__GIT_PROMPT_IGNORE_STASH" = "1" ]]; then
43
num_stashed=0
44
else
45
num_stashed=`git stash list | wc -l`
0 commit comments