with the recent update of git to 1.7.12-1 the __git_ps1 prompting function can't be found anymore (needed in my command prompt). I had a look into the changelog:
https://raw.github.com/gitster/git/mast … 1.7.12.txt
and it seems this has been refactored into another script (/usr/share/git/git-prompt.sh).
I think the function was stored in the environment (I could see it before when typing in "set"), but after the update it isn't anymore. This could be a bug, but since I'm a relative noob, I'm not sure. So my question is, how do I get a function into the "set" list? Do I have to source something in my .bashrc?
Thanks for any help.
Last edited by synthetic (2012-08-22 02:02:47)
I just tried sourcing /usr/share/git/git-prompt.sh, and that works. But shouldn't there be a way to include this with the other git functions?
bash completion has moved to being on demand rather than completely source all completion functions at once. That means that the git prompt would not be set and it was split into the separate file. Read the note at the start of that file you found.
If I had just gone one little step further...