Skip to content

Commit c427520

Browse files
committed
Update README
1 parent 0bd011c commit c427520

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,11 @@ cp gitprompt.fish ~/.config/fish/functions/fish_prompt.fish
148148
GIT_PROMPT_ONLY_IN_REPO=1
149149

150150
# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
151+
# GIT_PROMPT_IGNORE_SUBMODULES=1 # uncomment to avoid searching for changed files in submodules
151152

152153
# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
153154
# GIT_PROMPT_SHOW_UNTRACKED_FILES=all # can be no, normal or all; determines counting of untracked files
154-
155+
155156
# GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0 # uncomment to avoid printing the number of changed files
156157

157158
# GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
@@ -290,6 +291,10 @@ GIT_PROMPT_COMMAND_FAIL="${Red}✘-_LAST_COMMAND_STATE_ " # displays as ✘-1 fo
290291
``GIT_PROMPT_SHOW_UNTRACKED_FILES=no`` in your ``.bash-git-rc`` in the repository or
291292
by disabling it globally in your ``.bashrc``
292293

294+
- If you have a repository with a deep submodule hierarchy, this can also affect performance.
295+
You can disable searching for changes in submodules on a per repository basis by setting
296+
``GIT_PROMPT_IGNORE_SUBMODULES=1`` in your ``.bash-git-rc``
297+
293298
- You can get help on the git prompt with the function ``git_prompt_help``.
294299
Examples are available with ``git_prompt_examples``.
295300
A list of all available named colors is available with `git_prompt_color_samples`

0 commit comments

Comments
 (0)