Given a blob object, how can you find the (first) commit that contains that object?
One solution I think is to start a revwalk from the tip of a branch and walk your way down the graph, inspecting the tree for each commit and use something like git_tree_entry_byid
to see if it contains your object. This would find commits accessible from a particular branch, but it is a solution in my case.
Is there a better way of doing this?