Re: List all SHA1 hashes in repo
- From
- Peter Harris <git@peter.is-a-geek.org>
- Date
- Mar 23, 2008, 13:40 UTC
- Message-ID
- <eaa105840803230640j11ffa096x511a81b1c0b8f40e@mail.gmail.com>
- In-Reply-To
- <c6c947f60803230617if9606baxea21fa99dc3df37c@mail.gmail.com>
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