Use git ls-tree when you can