Added a check for branch ahead or diverged