Stop updating git index because this changes the repository.
Write unit tests for lib/git.sh and put all functions into a pseudo-namespace.
Use the namespaced functions on bash_prompt.