I am doing some extended use of Git, requesting objects to make test runs of my code optimized, so bear with me if the following sounds are very far from what most people do with Git.
I want to do something like git cat-file -p [...]
, except for objects on the remote computer, without getting them. those. I want to say: "On remote origin
, show me commit A
, in particular, tell me what its tree identifier is, and then show me the contents of the tree (list of blocks and subtrees.)" I donโt know you need to get the actual contents of the files , only the information above.
I know that I can just take the commit from the remote to the local repo and use git cat-file
on it, but then it will include a selection of all the commit parents from the remote, which can take a lot of time. I need this to be fast because it was done in a program that has to run hundreds of times a day in many different repositories.
Is there a way to do this without choosing a commit?
source share