Is there a way to retrieve all the SHA1’s for all objects (blobs and trees) inside of a particular commit in git?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m pretty sure that
git rev-listwill do what you want:See the documentation on
git rev-listfor more information at http://www.kernel.org/pub/software/scm/git/docs/git-rev-list.html.Edit: Added
--no-walkas per Paŭlo Ebermann’s suggestion; this will only show the objects for the given ref, without the ancestor commits.