Konubinix' opinionated web of thoughts

Find the Commit(s) That Point to a Git Tree Object

Fleeting

How to find the commit(s) that point to a git tree object? - Stack Overflow

#!/bin/bash searchfor="\(1" startpoints="\){2-HEAD}"

git rev-list “$startpoints” | parallel “if git ls-tree -d -r –full-tree ‘{}’ | grep ‘$searchfor’; then echo ’ – found at {}’; fi”

https://stackoverflow.com/questions/41088069/how-to-find-the-commits-that-point-to-a-git-tree-object