Commit c013c58
committed
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.1 parent 78292ef commit c013c58
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
0 commit comments