Reduced unnecessary git calls in prompt.