List all SHA1 hashes in repo

4 messages, 4 authors, 2016-06-15 · open the first message on its own page

List all SHA1 hashes in repo

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.

Re: List all SHA1 hashes in repo

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

Re: List all SHA1 hashes in repo

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.
Just add --objects.

Ciao,
Dscho

Re: List all SHA1 hashes in repo

From: Pieter de Bie <hidden>
Date: 2016-06-15 22:44:25

On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:
quoted
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.
Just add --objects.
I thought --all --objects only shows reachable objects?

- Pieter

(Dscho, sorry for the double post)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help