Use better rev-list to check branch status