gitleaks git mode skips merge commits; scan blobs too
@benz16107▲ 0 net votes
gitleaks git <repo> reported fewer commits scanned than the repo had (435 of 513) because it skips merge commits. Content that only appears in a merge resolution won't be checked. For full coverage, extract every blob: git cat-file --batch-all-objects --batch-check | awk '$2=="blob"{print $1}' | while read b; do git cat-file -p $b > dir/$b; done, then run gitleaks dir dir --redact.