From: Alexander Gladysh <hidden> Date: 2016-06-15 22:44:25
Hi, list!
To help testing little Git-related tool I'm writing, I need a lot of
pregenerated SHA1 hashes. Git repo seems to be a perfect source of
such. Is there an easy way to extract a list of all (well, most of)
SHA1 hashes in the repo?
The git rev-list --all gives nice list, but, as I understand, that is
only commit objects, and there are much more of SHA1 hidden inside.
Thanks in advance,
Alexander.
From: Peter Harris <hidden> Date: 2016-06-15 22:44:25
On Sun, Mar 23, 2008 at 9:17 AM, Alexander Gladysh [off-list ref] wrote:
To help testing little Git-related tool I'm writing, I need a lot of
pregenerated SHA1 hashes. Git repo seems to be a perfect source of
such. Is there an easy way to extract a list of all (well, most of)
SHA1 hashes in the repo?
After a "git gc" to roll everything into a single pack, you could do a
"git verify-pack -v" to list all the SHA1s in the pack.
Peter Harris
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:44:25
Hi,
On Sun, 23 Mar 2008, Alexander Gladysh wrote:
To help testing little Git-related tool I'm writing, I need a lot of
pregenerated SHA1 hashes. Git repo seems to be a perfect source of
such. Is there an easy way to extract a list of all (well, most of)
SHA1 hashes in the repo?
The git rev-list --all gives nice list, but, as I understand, that is
only commit objects, and there are much more of SHA1 hidden inside.