* List all SHA1 hashes in repo
@ 2008-03-23 13:17 Alexander Gladysh
2008-03-23 13:40 ` Peter Harris
2008-03-23 13:59 ` Johannes Schindelin
0 siblings, 2 replies; 8+ messages in thread
From: Alexander Gladysh @ 2008-03-23 13:17 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
2008-03-23 13:17 List all SHA1 hashes in repo Alexander Gladysh
@ 2008-03-23 13:40 ` Peter Harris
2008-03-23 13:59 ` Johannes Schindelin
1 sibling, 0 replies; 8+ messages in thread
From: Peter Harris @ 2008-03-23 13:40 UTC (permalink / raw)
To: Alexander Gladysh; +Cc: git
On Sun, Mar 23, 2008 at 9:17 AM, Alexander Gladysh <agladysh@gmail.com> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
2008-03-23 13:17 List all SHA1 hashes in repo Alexander Gladysh
2008-03-23 13:40 ` Peter Harris
@ 2008-03-23 13:59 ` Johannes Schindelin
2008-03-23 14:21 ` Pieter de Bie
[not found] ` <540004BB-49C4-456B-ABA3-62659D85C15E@ai.rug.nl>
1 sibling, 2 replies; 8+ messages in thread
From: Johannes Schindelin @ 2008-03-23 13:59 UTC (permalink / raw)
To: Alexander Gladysh; +Cc: git
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
2008-03-23 13:59 ` Johannes Schindelin
@ 2008-03-23 14:21 ` Pieter de Bie
[not found] ` <540004BB-49C4-456B-ABA3-62659D85C15E@ai.rug.nl>
1 sibling, 0 replies; 8+ messages in thread
From: Pieter de Bie @ 2008-03-23 14:21 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Alexander Gladysh, git
On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:
>> 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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
[not found] ` <540004BB-49C4-456B-ABA3-62659D85C15E@ai.rug.nl>
@ 2008-03-23 14:33 ` Johannes Schindelin
2008-03-23 15:44 ` Alexander Gladysh
2008-03-23 18:23 ` Junio C Hamano
0 siblings, 2 replies; 8+ messages in thread
From: Johannes Schindelin @ 2008-03-23 14:33 UTC (permalink / raw)
To: Pieter de Bie; +Cc: Alexander Gladysh, git
Hi,
On Sun, 23 Mar 2008, Pieter de Bie wrote:
> On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:
> > > 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?
Ah yes. But usually the objects in packs are reachable...
So you're right, it does not really show _all_ objects. But it shows many
objects, and is pretty easy (which I think was the original poster's real
question).
Ciao,
Dscho
P.S.: I got two mails from you, one without the Cc: list, and one with
it... Strange.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
2008-03-23 14:33 ` Johannes Schindelin
@ 2008-03-23 15:44 ` Alexander Gladysh
2008-03-23 18:23 ` Junio C Hamano
1 sibling, 0 replies; 8+ messages in thread
From: Alexander Gladysh @ 2008-03-23 15:44 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Pieter de Bie, git
> > > > 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?
>
> Ah yes. But usually the objects in packs are reachable...
>
> So you're right, it does not really show _all_ objects. But it shows many
> objects, and is pretty easy (which I think was the original poster's real
> question).
Yes, this is a perfect solution. Thank you!
Alexander.
P.S. Sorry for double-posting, Dscho, I forgot Reply to All too. :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
2008-03-23 14:33 ` Johannes Schindelin
2008-03-23 15:44 ` Alexander Gladysh
@ 2008-03-23 18:23 ` Junio C Hamano
2008-03-23 18:48 ` Johannes Schindelin
1 sibling, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2008-03-23 18:23 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Pieter de Bie, Alexander Gladysh, git
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Hi,
>
> On Sun, 23 Mar 2008, Pieter de Bie wrote:
>
>> On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:
>> > > 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?
>
> Ah yes. But usually the objects in packs are reachable...
>
> So you're right, it does not really show _all_ objects.
"rev-list --objects --all"?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: List all SHA1 hashes in repo
2008-03-23 18:23 ` Junio C Hamano
@ 2008-03-23 18:48 ` Johannes Schindelin
0 siblings, 0 replies; 8+ messages in thread
From: Johannes Schindelin @ 2008-03-23 18:48 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Pieter de Bie, Alexander Gladysh, git
Hi,
On Sun, 23 Mar 2008, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > On Sun, 23 Mar 2008, Pieter de Bie wrote:
> >
> >> On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:
> >> > > 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?
> >
> > Ah yes. But usually the objects in packs are reachable...
> >
> > So you're right, it does not really show _all_ objects.
>
> "rev-list --objects --all"?
I think Pieter's point was that there can be unreachable objects, an this
command line does not show them.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-03-23 18:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-23 13:17 List all SHA1 hashes in repo Alexander Gladysh
2008-03-23 13:40 ` Peter Harris
2008-03-23 13:59 ` Johannes Schindelin
2008-03-23 14:21 ` Pieter de Bie
[not found] ` <540004BB-49C4-456B-ABA3-62659D85C15E@ai.rug.nl>
2008-03-23 14:33 ` Johannes Schindelin
2008-03-23 15:44 ` Alexander Gladysh
2008-03-23 18:23 ` Junio C Hamano
2008-03-23 18:48 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).