mob
mob copied to clipboard
Speed up hasCommits check
git rev-list --all is very slow for large repositories (order of 5s on a repo with 500k commits).
This alternative version works by checking whether HEAD points at a valid commit.