move git functions out of prompt definition. update git functions to display work dir status correctly