gitleaks scant all commits

can gitleaks only scan the latest commit?