The old default of `all` counts all untracked files - including files
listed in .gitignore, which basically makes that information worthless.
`normal` is the default if --show-untracked is not given, and will
list/count the same files as a `git status` will list.
In commit 8ed0d31e8e, which was only supposed to change "cd" to "command cd", this "set echo" line was also added. This command stomps on the shell's argument list, which (through a complicated chain of events) causes logins under lightdm on Linux to fail.
This fixes an obscure error that occurs when the original $PROMPT_COMMAND contains new lines
For example if original $PROMPT_COMMAND is:
```
__bp_trap_string="$(trap -p DEBUG)"
trap DEBUG
__bp_install
```
this then results to the prompt var being set to:
```
setLastCommandState; __bp_trap_string="$(trap -p DEBUG)" trap DEBUG __bp_install ;setGitPrompt
```
which then blows up during `eval` with obscure:
```
bash: PROMPT_COMMAND: line 4: syntax error near unexpected token `;'
bash: PROMPT_COMMAND: line 4: `;setGitPrompt'
```
When GIT_PROMPT_FETCH_REMOTE_STATUS is nonzero, suppresses useless password prompts created by the remote status failing to be updated
Fixesmagicmonty/bash-git-prompt#354
- add $GIT_PROMPT_MASTER_BRANCH - color for master branch
- add $GIT_PROMPT_MASTER_BRANCHES - branch name(s) that use
$GIT_PROMPT_MASTER_BRANCH color, 'master' by default)
All other branches will continue to use $GIT_PROMPT_BRANCH
Fixes https://github.com/magicmonty/bash-git-prompt/issues/311
If length is passed as a parameter, the given length will be used to
truncate the pwd. If nothing is specified it defaults to 1/3 of
the terminal width.
* Fixed the bug, than GIT_SHOW_UNTRACKED_FILES=no was not respected
* Renamed GIT_SHOW_UNTRACKED_FILES to GIT_PROMPT_SHOW_UNTRACKED_FILES as
this is more consistent to the other environment variables
* GIT_PROMPT_SHOW_UNTRACKED_FILES can be now also set on a per
repository basis in .bash-git-rc
* Updated README
Fixes#215 and 216
changed #!/bin/sh to #!/bin/bash as eg Debian and Ubuntu default
shell is /bin/dash. This script will not work with it, and so the
default shell has to be /bin/bash.