Git status to check if a branch is dirty is waaaay to slow for large repos.
git diff --shortstat seems to be much faster (and makes the prompt appear ... promptly)