After upgrading to latest Git version, bash function __git_ps1 is not available anymore. Reproducible: Always Steps to Reproduce: 0. emerge Git with bash-completion enabled 1. enable Git bash-completion module 2. enter a directory under Git version control 3. check completion upon 'git' command 4. __git_* commands should be available but __git_ps1 is missing X: try to run __git_ps1 Actual Results: bash: __git_ps1: command not found Expected Results: Output of active branch, e.g. (master) Git sources of bash-completion has been changed. Definition of '__git_ps1' function has been moved to a separate file: from: contrib/completion/git-completion.bash to: contrib/completion/git-prompt.sh I have just executed: # tail -n+76 contrib/completion/git-prompt.sh >> contrib/completion/git-completion.bash and replaced completion sources on my system # cp contrib/completion/git-completion.bash /usr/share/bash-completion/git
Created attachment 321968 [details] original git-core file containing __git_ps1 function
Fixed in 1.7.12-r2. You need to enable the new git-prompt script.
*** Bug 432416 has been marked as a duplicate of this bug. ***
*** Bug 432600 has been marked as a duplicate of this bug. ***
There should be a message informing about the necessary change when emerging one of the newer git versions.