{"thread":{"id":"12817","subject":"List all SHA1 hashes in repo","startedAt":"2008-03-23T13:17:29Z","lastAt":"2008-03-23T18:48:27Z","messageCount":8,"participants":["Alexander Gladysh","Peter Harris","Johannes Schindelin","Pieter de Bie","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"72742","messageId":"c6c947f60803230617if9606baxea21fa99dc3df37c@mail.gmail.com","threadId":"12817","inReplyTo":null,"subject":"List all SHA1 hashes in repo","fromName":"Alexander Gladysh","fromEmail":"agladysh@gmail.com","sentAt":"2008-03-23T13:17:29Z","receivedAt":"2008-03-23T13:17:29Z","isPatch":false,"sender":{"key":"agladysh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38239?v=4"},"body":"Hi, list!\n\nTo help testing little Git-related tool I'm writing, I need a lot of\npregenerated SHA1 hashes. Git repo seems to be a perfect source of\nsuch. Is there an easy way to extract a list of all (well, most of)\nSHA1 hashes in the repo?\n\nThe git rev-list --all gives nice list, but, as I understand, that is\nonly commit objects, and there are much more of SHA1 hidden inside.\n\nThanks in advance,\nAlexander.\n"},{"id":"72745","messageId":"eaa105840803230640j11ffa096x511a81b1c0b8f40e@mail.gmail.com","threadId":"12817","inReplyTo":"c6c947f60803230617if9606baxea21fa99dc3df37c@mail.gmail.com","subject":"Re: List all SHA1 hashes in repo","fromName":"Peter Harris","fromEmail":"git@peter.is-a-geek.org","sentAt":"2008-03-23T13:40:07Z","receivedAt":"2008-03-23T13:40:07Z","isPatch":false,"sender":{"key":"git@peter.is-a-geek.org","avatar":null},"body":"On Sun, Mar 23, 2008 at 9:17 AM, Alexander Gladysh <agladysh@gmail.com> wrote:\n>  To help testing little Git-related tool I'm writing, I need a lot of\n>  pregenerated SHA1 hashes. Git repo seems to be a perfect source of\n>  such. Is there an easy way to extract a list of all (well, most of)\n>  SHA1 hashes in the repo?\n\nAfter a \"git gc\" to roll everything into a single pack, you could do a\n\"git verify-pack -v\" to list all the SHA1s in the pack.\n\nPeter Harris\n"},{"id":"72751","messageId":"alpine.LSU.1.00.0803231459100.4353@racer.site","threadId":"12817","inReplyTo":"c6c947f60803230617if9606baxea21fa99dc3df37c@mail.gmail.com","subject":"Re: List all SHA1 hashes in repo","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-03-23T13:59:34Z","receivedAt":"2008-03-23T13:59:34Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 23 Mar 2008, Alexander Gladysh wrote:\n\n> To help testing little Git-related tool I'm writing, I need a lot of\n> pregenerated SHA1 hashes. Git repo seems to be a perfect source of\n> such. Is there an easy way to extract a list of all (well, most of)\n> SHA1 hashes in the repo?\n> \n> The git rev-list --all gives nice list, but, as I understand, that is\n> only commit objects, and there are much more of SHA1 hidden inside.\n\nJust add --objects.\n\nCiao,\nDscho\n"},{"id":"72765","messageId":"7B06FEDE-799E-431B-8F35-C1B6AE40BE8D@ai.rug.nl","threadId":"12817","inReplyTo":"alpine.LSU.1.00.0803231459100.4353@racer.site","subject":"Re: List all SHA1 hashes in repo","fromName":"Pieter de Bie","fromEmail":"pdebie@ai.rug.nl","sentAt":"2008-03-23T14:21:28Z","receivedAt":"2008-03-23T14:21:28Z","isPatch":false,"sender":{"key":"pdebie@ai.rug.nl","avatar":null},"body":"\nOn Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:\n>> The git rev-list --all gives nice list, but, as I understand, that is\n>> only commit objects, and there are much more of SHA1 hidden inside.\n>\n> Just add --objects.\n\nI thought --all --objects only shows reachable objects?\n\n- Pieter\n\n(Dscho, sorry for the double post)\n"},{"id":"72762","messageId":"alpine.LSU.1.00.0803231532150.4353@racer.site","threadId":"12817","inReplyTo":"540004BB-49C4-456B-ABA3-62659D85C15E@ai.rug.nl","subject":"Re: List all SHA1 hashes in repo","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-03-23T14:33:20Z","receivedAt":"2008-03-23T14:33:20Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 23 Mar 2008, Pieter de Bie wrote:\n\n> On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:\n> > > The git rev-list --all gives nice list, but, as I understand, that \n> > > is only commit objects, and there are much more of SHA1 hidden \n> > > inside.\n> >\n> > Just add --objects.\n> \n> I thought --all --objects only shows reachable objects?\n\nAh yes.  But usually the objects in packs are reachable...\n\nSo you're right, it does not really show _all_ objects.  But it shows many \nobjects, and is pretty easy (which I think was the original poster's real \nquestion).\n\nCiao,\nDscho\n\nP.S.: I got two mails from you, one without the Cc: list, and one with \nit...  Strange.\n"},{"id":"72772","messageId":"c6c947f60803230844s6489422xba49a074d226702a@mail.gmail.com","threadId":"12817","inReplyTo":"alpine.LSU.1.00.0803231532150.4353@racer.site","subject":"Re: List all SHA1 hashes in repo","fromName":"Alexander Gladysh","fromEmail":"agladysh@gmail.com","sentAt":"2008-03-23T15:44:19Z","receivedAt":"2008-03-23T15:44:19Z","isPatch":false,"sender":{"key":"agladysh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38239?v=4"},"body":"> > > > The git rev-list --all gives nice list, but, as I understand, that\n>  > > > is only commit objects, and there are much more of SHA1 hidden\n>  > > > inside.\n>  > >\n>  > > Just add --objects.\n>\n> > I thought --all --objects only shows reachable objects?\n>\n>  Ah yes.  But usually the objects in packs are reachable...\n>\n>  So you're right, it does not really show _all_ objects.  But it shows many\n>  objects, and is pretty easy (which I think was the original poster's real\n>  question).\n\nYes, this is a perfect solution. Thank you!\n\nAlexander.\n\nP.S. Sorry for double-posting, Dscho, I forgot Reply to All too. :-)\n"},{"id":"72789","messageId":"7v8x097111.fsf@gitster.siamese.dyndns.org","threadId":"12817","inReplyTo":"alpine.LSU.1.00.0803231532150.4353@racer.site","subject":"Re: List all SHA1 hashes in repo","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-03-23T18:23:06Z","receivedAt":"2008-03-23T18:23:06Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n\n> Hi,\n>\n> On Sun, 23 Mar 2008, Pieter de Bie wrote:\n>\n>> On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:\n>> > > The git rev-list --all gives nice list, but, as I understand, that \n>> > > is only commit objects, and there are much more of SHA1 hidden \n>> > > inside.\n>> >\n>> > Just add --objects.\n>> \n>> I thought --all --objects only shows reachable objects?\n>\n> Ah yes.  But usually the objects in packs are reachable...\n>\n> So you're right, it does not really show _all_ objects.\n\n\"rev-list --objects --all\"?\n"},{"id":"72793","messageId":"alpine.LSU.1.00.0803231947530.4353@racer.site","threadId":"12817","inReplyTo":"7v8x097111.fsf@gitster.siamese.dyndns.org","subject":"Re: List all SHA1 hashes in repo","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-03-23T18:48:27Z","receivedAt":"2008-03-23T18:48:27Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 23 Mar 2008, Junio C Hamano wrote:\n\n> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n> \n> > On Sun, 23 Mar 2008, Pieter de Bie wrote:\n> >\n> >> On Mar 23, 2008, at 2:59 PM, Johannes Schindelin wrote:\n> >> > > The git rev-list --all gives nice list, but, as I understand, \n> >> > > that is only commit objects, and there are much more of SHA1 \n> >> > > hidden inside.\n> >> >\n> >> > Just add --objects.\n> >> \n> >> I thought --all --objects only shows reachable objects?\n> >\n> > Ah yes.  But usually the objects in packs are reachable...\n> >\n> > So you're right, it does not really show _all_ objects.\n> \n> \"rev-list --objects --all\"?\n\nI think Pieter's point was that there can be unreachable objects, an this \ncommand line does not show them.\n\nCiao,\nDscho\n"}]}