We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc97adf commit 7855e77Copy full SHA for 7855e77
gitstatus.sh
@@ -38,7 +38,7 @@ staged_files=`git diff --staged --name-status`
38
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 status -s -uall | grep -c "^??"`
+num_untracked=`GIT_INDEX_FILE=/tmp/bash_git_prompt_index git status -s -uall | grep -c "^??"`
42
if [[ -n "$GIT_PROMPT_IGNORE_STASH" ]]; then
43
num_stashed=0
44
else
0 commit comments