Update gitprompt.sh

Remove trailing whitespaces
Merge pull request #54 from ChoiZ/patch-1

Update gitprompt.sh
Fix PROMPT_COMMAND setGitPrompt cumulation when re-sourcing gitprompt.sh

Repeated calls of:
    source .bash-git-prompt/gitprompt.sh
lead to cumulation:
    PROMPT_COMMAND=setGitPrompt;setGitPrompt;...
rendering everything slow
Merge pull request #55 from Bost/prompt-command

Fix PROMPT_COMMAND setGitPrompt cumulation when re-sourcing gitprompt.sh
Move last little bit of script into a function so local is available
Merge pull request #56 from erikpukinskis/master

Move last little bit of script into a function so local is available