Jonathan Nieder | 51efe10 | 2012-10-31 16:24:12 -0700 | [diff] [blame] | 1 | # In git versions < 1.7.12, this shell library was part of the |
| 2 | # git completion script. |
| 3 | # |
| 4 | # Some users rely on the __git_ps1 function becoming available |
| 5 | # when bash-completion is loaded. Continue to load this library |
| 6 | # at bash-completion startup for now, to ease the transition to a |
| 7 | # world order where the prompt function is requested separately. |
| 8 | # |
Jonathan Nieder | 90c3050 | 2014-01-03 15:44:54 -0800 | [diff] [blame] | 9 | if [[ -e /usr/lib/git-core/git-sh-prompt ]]; then |
| 10 | . /usr/lib/git-core/git-sh-prompt |
| 11 | fi |