Skip to content

Commit c82493d

Browse files
Arne Schmitzamjames
Arne Schmitz
authored andcommitted
add documentation for GIT_SHOW_UNTRACKED_FILES
1 parent 37f7ed2 commit c82493d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt
124124
# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
125125

126126
# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
127-
127+
# GIT_SHOW_UNTRACKED_FILES=all # can be no, normal or all; determines counting of untracked files
128+
128129
# GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
129130

130131
# GIT_PROMPT_START=... # uncomment for custom prompt start sequence
@@ -136,6 +137,10 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt
136137
source ~/.bash-git-prompt/gitprompt.sh
137138
```
138139

140+
You can set the `GIT_SHOW_UNTRACKED_FILES` variable to `no` or `normal` to speed things up if you have lots of
141+
untracked files in your repository. This can be the case for build systems that put their build artifacts in
142+
the subdirectory structure of the git repository.
143+
139144
- `cd` to a git repository and test it!
140145

141146
#### Themes

0 commit comments

Comments
 (0)