Given the hash of a blob, is there a way to get a list of commits that have this blob in their tree?
Unfortunately scripts were a bit slow for me, so I had to optimize a bit. Luckily I had not only the hash but also the path of a file.
git log --all --pretty=format:%H -- | xargs -n1 -I% sh -c "git ls-tree % -- | grep -q && echo %"